Package org.jruby.ir.targets.indy
Class IndyConstantCompiler
java.lang.Object
org.jruby.ir.targets.indy.IndyConstantCompiler
- All Implemented Interfaces:
ConstantCompiler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinheritanceSearchConst(String id, ByteList name) Lookup a constant from a given class or module.voidlexicalSearchConst(String id, ByteList name) Lookup a constant from a lexical scope.voidsearchConst(String id, ByteList name, boolean noPrivateConsts) Lookup a constant from current context.voidsearchModuleForConst(String id, ByteList name, boolean noPrivateConsts, boolean callConstMissing) Lookup a constant from current module.
-
Field Details
-
compiler
-
-
Constructor Details
-
IndyConstantCompiler
-
-
Method Details
-
searchConst
Description copied from interface:ConstantCompilerLookup a constant from current context.Stack required: context, static scope
- Specified by:
searchConstin interfaceConstantCompiler- Parameters:
id- the "ID string" of the constant namename- name of the constantnoPrivateConsts- whether to ignore private constants
-
searchModuleForConst
public void searchModuleForConst(String id, ByteList name, boolean noPrivateConsts, boolean callConstMissing) Description copied from interface:ConstantCompilerLookup a constant from current module.Stack required: context, module
- Specified by:
searchModuleForConstin interfaceConstantCompiler- Parameters:
id- the "ID string" of the constant namename- name of the constantnoPrivateConsts- whether to ignore private constants
-
inheritanceSearchConst
Description copied from interface:ConstantCompilerLookup a constant from a given class or module.Stack required: context, module
- Specified by:
inheritanceSearchConstin interfaceConstantCompiler- Parameters:
id- the "ID string" of the constant namename- name of the constant
-
lexicalSearchConst
Description copied from interface:ConstantCompilerLookup a constant from a lexical scope.Stack required: context, static scope
- Specified by:
lexicalSearchConstin interfaceConstantCompiler- Parameters:
id- the "ID string" of the constant namename- name of the constant
-