org.jruby.compiler.ir
Class IR_ScopeImpl
java.lang.Object
org.jruby.compiler.ir.IR_ScopeImpl
- All Implemented Interfaces:
- IR_Scope
- Direct Known Subclasses:
- IR_Closure, IR_Method, IR_Module, IR_Script
public abstract class IR_ScopeImpl
- extends java.lang.Object
- implements IR_Scope
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_modules
public final java.util.List<IR_Module> _modules
_classes
public final java.util.List<IR_Class> _classes
_methods
public final java.util.List<IR_Method> _methods
IR_ScopeImpl
public IR_ScopeImpl(IR_Scope parent,
IR_Scope lexicalParent)
IR_ScopeImpl
public IR_ScopeImpl(Operand parent,
IR_Scope lexicalParent)
getParent
public Operand getParent()
- Specified by:
getParent
in interface IR_Scope
getNewVariable
public Variable getNewVariable(java.lang.String prefix)
- Specified by:
getNewVariable
in interface IR_Scope
getNewVariable
public Variable getNewVariable()
- Specified by:
getNewVariable
in interface IR_Scope
getNewLabel
public Label getNewLabel(java.lang.String lblPrefix)
- Specified by:
getNewLabel
in interface IR_Scope
getNewLabel
public Label getNewLabel()
- Specified by:
getNewLabel
in interface IR_Scope
getAndIncrementMethodIndex
public int getAndIncrementMethodIndex()
getSelf
public Variable getSelf()
- Specified by:
getSelf
in interface IR_Scope
addModule
public void addModule(IR_Module m)
- Specified by:
addModule
in interface IR_Scope
addClass
public void addClass(IR_Class c)
- Specified by:
addClass
in interface IR_Scope
addMethod
public void addMethod(IR_Method m)
- Specified by:
addMethod
in interface IR_Scope
addInstr
public void addInstr(IR_Instr i)
- Specified by:
addInstr
in interface IR_Scope
getInstrs
public java.util.List<IR_Instr> getInstrs()
buildCFG
public CFG buildCFG()
- Specified by:
buildCFG
in interface IR_Scope
getCFG
public CFG getCFG()
- Specified by:
getCFG
in interface IR_Scope
getConstantValue
public Operand getConstantValue(java.lang.String constRef)
- Specified by:
getConstantValue
in interface IR_Scope
setConstantValue
public void setConstantValue(java.lang.String constRef,
Operand val)
- Specified by:
setConstantValue
in interface IR_Scope
getConstants
public java.util.Map getConstants()
startLoop
public void startLoop(IR_Loop l)
- Specified by:
startLoop
in interface IR_Scope
endLoop
public void endLoop(IR_Loop l)
- Specified by:
endLoop
in interface IR_Scope
getCurrentLoop
public IR_Loop getCurrentLoop()
- Specified by:
getCurrentLoop
in interface IR_Scope
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
runCompilerPass
public void runCompilerPass(CompilerPass p)
- Specified by:
runCompilerPass
in interface IR_Scope
toStringInstrs
public java.lang.String toStringInstrs()
toStringVariables
public java.lang.String toStringVariables()
Copyright © 2002-2009 JRuby Team. All Rights Reserved.