Package org.jruby.ir.targets.simple
Class NormalConstantCompiler
java.lang.Object
org.jruby.ir.targets.simple.NormalConstantCompiler
- All Implemented Interfaces:
ConstantCompiler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
inheritanceSearchConst
(String id, ByteList name) Lookup a constant from a given class or module.void
lexicalSearchConst
(String id, ByteList name) Lookup a constant from a lexical scope.void
searchConst
(String id, ByteList name, boolean noPrivateConsts) Lookup a constant from current context.void
searchModuleForConst
(String id, ByteList name, boolean noPrivateConsts, boolean callConstMissing) Lookup a constant from current module.
-
Constructor Details
-
NormalConstantCompiler
-
-
Method Details
-
searchConst
Description copied from interface:ConstantCompiler
Lookup a constant from current context.Stack required: context, static scope
- Specified by:
searchConst
in 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:ConstantCompiler
Lookup a constant from current module.Stack required: context, module
- Specified by:
searchModuleForConst
in interfaceConstantCompiler
- Parameters:
id
- the "ID string" of the constant namename
- name of the constantnoPrivateConsts
- whether to ignore private constants
-
inheritanceSearchConst
Description copied from interface:ConstantCompiler
Lookup a constant from a given class or module.Stack required: context, module
- Specified by:
inheritanceSearchConst
in interfaceConstantCompiler
- Parameters:
id
- the "ID string" of the constant namename
- name of the constant
-
lexicalSearchConst
Description copied from interface:ConstantCompiler
Lookup a constant from a lexical scope.Stack required: context, static scope
- Specified by:
lexicalSearchConst
in interfaceConstantCompiler
- Parameters:
id
- the "ID string" of the constant namename
- name of the constant
-