public class IRModule extends IRScopeImpl
| Constructor and Description |
|---|
IRModule(IRScope lexicalParent,
Operand container,
java.lang.String name,
StaticScope scope) |
| Modifier and Type | Method and Description |
|---|---|
void |
addClass(IRClass c) |
void |
addMethod(IRMethod method) |
void |
addModule(IRModule m) |
static void |
bootStrap() |
java.util.List<IRClass> |
getClasses() |
IRMethod |
getClassMethod(java.lang.String name) |
java.util.Map |
getConstants() |
Operand |
getConstantValue(java.lang.String constRef) |
static IRClass |
getCoreClass(java.lang.String n) |
IRMethod |
getInstanceMethod(java.lang.String name) |
LocalVariable |
getLocalVariable(java.lang.String name)
Get Local Variable from this scope
|
java.util.List<IRMethod> |
getMethods() |
java.util.List<IRModule> |
getModules() |
IRModule |
getNearestModule()
Returns the nearest module/class from this scope which may be itself.
|
IRMethod |
getRootMethod() |
java.lang.String |
getScopeName() |
CodeVersion |
getVersion() |
static boolean |
isAClassRootMethod(IRMethod m) |
boolean |
isCoreClass(java.lang.String className) |
void |
runCompilerPassOnNestedScopes(CompilerPass p) |
void |
setConstantValue(java.lang.String constRef,
Operand val) |
void |
updateVersion() |
addInstr, getContainer, getContainerModule, getInstrs, getLexicalParent, getName, getNewInlineVariable, getNewLabel, getNewLabel, getNewTemporaryClosureVariable, getNewTemporaryVariable, getNextClosureId, getPrefixCountSize, getRenamedVariableSize, getStaticScope, getTemporaryVariableSize, prepareForInterpretation, recordMethodAlias, runCompilerPass, setContainer, setName, toString, toStringInstrs, toStringVariables, unaliasMethodNamepublic IRModule(IRScope lexicalParent, Operand container, java.lang.String name, StaticScope scope)
public static void bootStrap()
public static IRClass getCoreClass(java.lang.String n)
public static boolean isAClassRootMethod(IRMethod m)
public java.util.List<IRModule> getModules()
public java.util.List<IRClass> getClasses()
public java.util.List<IRMethod> getMethods()
public java.util.Map getConstants()
public Operand getConstantValue(java.lang.String constRef)
public void setConstantValue(java.lang.String constRef,
Operand val)
public void addModule(IRModule m)
public void addClass(IRClass c)
public void addMethod(IRMethod method)
public void runCompilerPassOnNestedScopes(CompilerPass p)
runCompilerPassOnNestedScopes in class IRScopeImplpublic IRModule getNearestModule()
IRScopegetNearestModule in interface IRScopegetNearestModule in class IRScopeImplpublic void updateVersion()
public java.lang.String getScopeName()
getScopeName in class IRScopeImplpublic CodeVersion getVersion()
public IRMethod getRootMethod()
public IRMethod getInstanceMethod(java.lang.String name)
public IRMethod getClassMethod(java.lang.String name)
public boolean isCoreClass(java.lang.String className)
public LocalVariable getLocalVariable(java.lang.String name)
IRScopeCopyright © 2002-2009 JRuby Team. All Rights Reserved.