Package org.jruby.ir.targets
Interface ConstantCompiler
- All Known Implementing Classes:
IndyConstantCompiler
,NormalConstantCompiler
public interface ConstantCompiler
-
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.
-
Method Details
-
searchConst
Lookup a constant from current context.Stack required: context, static scope
- Parameters:
id
- the "ID string" of the constant namename
- name of the constantnoPrivateConsts
- whether to ignore private constants
-
searchModuleForConst
void searchModuleForConst(String id, ByteList name, boolean noPrivateConsts, boolean callConstMissing) Lookup a constant from current module.Stack required: context, module
- Parameters:
id
- the "ID string" of the constant namename
- name of the constantnoPrivateConsts
- whether to ignore private constants
-
inheritanceSearchConst
Lookup a constant from a given class or module.Stack required: context, module
- Parameters:
id
- the "ID string" of the constant namename
- name of the constant
-
lexicalSearchConst
Lookup a constant from a lexical scope.Stack required: context, static scope
- Parameters:
id
- the "ID string" of the constant namename
- name of the constant
-