org.jruby.compiler.ir
Class IRModule
java.lang.Object
org.jruby.compiler.ir.IRScopeImpl
org.jruby.compiler.ir.IRModule
- All Implemented Interfaces:
- IRScope
- Direct Known Subclasses:
- IRClass
public class IRModule
- extends IRScopeImpl
Methods inherited from class org.jruby.compiler.ir.IRScopeImpl |
addInstr, getContainer, getContainerModule, getInstrs, getLexicalParent, getName, getNewInlineVariable, getNewLabel, getNewLabel, getNewTemporaryClosureVariable, getNewTemporaryVariable, getNextClosureId, getPrefixCountSize, getRenamedVariableSize, getStaticScope, getTemporaryVariableSize, prepareForInterpretation, recordMethodAlias, runCompilerPass, setContainer, setName, toString, toStringInstrs, toStringVariables, unaliasMethodName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IRModule
public IRModule(IRScope lexicalParent,
Operand container,
java.lang.String name,
StaticScope scope)
bootStrap
public static void bootStrap()
getCoreClass
public static IRClass getCoreClass(java.lang.String n)
isAClassRootMethod
public static boolean isAClassRootMethod(IRMethod m)
getModules
public java.util.List<IRModule> getModules()
getClasses
public java.util.List<IRClass> getClasses()
getMethods
public java.util.List<IRMethod> getMethods()
getConstants
public java.util.Map getConstants()
getConstantValue
public Operand getConstantValue(java.lang.String constRef)
setConstantValue
public void setConstantValue(java.lang.String constRef,
Operand val)
addModule
public void addModule(IRModule m)
addClass
public void addClass(IRClass c)
addMethod
public void addMethod(IRMethod method)
runCompilerPassOnNestedScopes
public void runCompilerPassOnNestedScopes(CompilerPass p)
- Overrides:
runCompilerPassOnNestedScopes
in class IRScopeImpl
getNearestModule
public IRModule getNearestModule()
- Description copied from interface:
IRScope
- Returns the nearest module/class from this scope which may be itself.
- Specified by:
getNearestModule
in interface IRScope
- Overrides:
getNearestModule
in class IRScopeImpl
updateVersion
public void updateVersion()
getScopeName
public java.lang.String getScopeName()
- Specified by:
getScopeName
in class IRScopeImpl
getVersion
public CodeVersion getVersion()
getRootMethod
public IRMethod getRootMethod()
getInstanceMethod
public IRMethod getInstanceMethod(java.lang.String name)
getClassMethod
public IRMethod getClassMethod(java.lang.String name)
isCoreClass
public boolean isCoreClass(java.lang.String className)
getLocalVariable
public LocalVariable getLocalVariable(java.lang.String name)
- Description copied from interface:
IRScope
- Get Local Variable from this scope
Copyright © 2002-2009 JRuby Team. All Rights Reserved.