public class NormalConstantCompiler extends java.lang.Object implements ConstantCompiler
| Constructor and Description |
|---|
NormalConstantCompiler(IRBytecodeAdapter compiler) |
| Modifier and Type | Method and Description |
|---|---|
void |
inheritanceSearchConst(java.lang.String id,
ByteList name)
Lookup a constant from a given class or module.
|
void |
lexicalSearchConst(java.lang.String id,
ByteList name)
Lookup a constant from a lexical scope.
|
void |
searchConst(java.lang.String id,
ByteList name,
boolean noPrivateConsts)
Lookup a constant from current context.
|
void |
searchModuleForConst(java.lang.String id,
ByteList name,
boolean noPrivateConsts,
boolean callConstMissing)
Lookup a constant from current module.
|
public NormalConstantCompiler(IRBytecodeAdapter compiler)
public void searchConst(java.lang.String id,
ByteList name,
boolean noPrivateConsts)
ConstantCompilerStack required: context, static scope
searchConst in interface ConstantCompilerid - the "ID string" of the constant namename - name of the constantnoPrivateConsts - whether to ignore private constantspublic void searchModuleForConst(java.lang.String id,
ByteList name,
boolean noPrivateConsts,
boolean callConstMissing)
ConstantCompilerStack required: context, module
searchModuleForConst in interface ConstantCompilerid - the "ID string" of the constant namename - name of the constantnoPrivateConsts - whether to ignore private constantspublic void inheritanceSearchConst(java.lang.String id,
ByteList name)
ConstantCompilerStack required: context, module
inheritanceSearchConst in interface ConstantCompilerid - the "ID string" of the constant namename - name of the constantpublic void lexicalSearchConst(java.lang.String id,
ByteList name)
ConstantCompilerStack required: context, static scope
lexicalSearchConst in interface ConstantCompilerid - the "ID string" of the constant namename - name of the constantCopyright © 2001-2022 JRuby. All Rights Reserved.