org.jruby.compiler.ir
Class IR_Method

java.lang.Object
  extended by org.jruby.compiler.ir.IR_ScopeImpl
      extended by org.jruby.compiler.ir.IR_Method
All Implemented Interfaces:
IR_Scope

public class IR_Method
extends IR_ScopeImpl


Field Summary
 Label _endLabel
           
 boolean _isInstanceMethod
           
 java.lang.String _name
           
 Label _startLabel
           
 
Fields inherited from class org.jruby.compiler.ir.IR_ScopeImpl
_classes, _methods, _modules
 
Constructor Summary
IR_Method(IR_Scope parent, IR_Scope lexicalParent, java.lang.String name, boolean isInstanceMethod)
           
IR_Method(IR_Scope parent, IR_Scope lexicalParent, java.lang.String name, java.lang.String javaName, boolean isInstanceMethod)
           
 
Method Summary
 void addInstr(IR_Instr i)
           
 Operand[] getCallArgs()
           
 CodeVersion getCodeVersionToken()
           
 IR_Module getDefiningModule()
           
 java.lang.String getFullyQualifiedName()
           
 boolean isAClassRootMethod()
           
 boolean isUnoptimizable()
           
 boolean modifiesCode()
           
 void setCodeModificationFlag(boolean f)
           
 void setConstantValue(java.lang.String constRef, Operand val)
           
 void setOptimizatableFlag(boolean f)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jruby.compiler.ir.IR_ScopeImpl
addClass, addMethod, addModule, buildCFG, endLoop, getAndIncrementMethodIndex, getCFG, getConstants, getConstantValue, getCurrentLoop, getInstrs, getNewLabel, getNewLabel, getNewVariable, getNewVariable, getParent, getSelf, runCompilerPass, startLoop, toStringInstrs, toStringVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_name

public final java.lang.String _name

_isInstanceMethod

public final boolean _isInstanceMethod

_startLabel

public final Label _startLabel

_endLabel

public final Label _endLabel
Constructor Detail

IR_Method

public IR_Method(IR_Scope parent,
                 IR_Scope lexicalParent,
                 java.lang.String name,
                 java.lang.String javaName,
                 boolean isInstanceMethod)

IR_Method

public IR_Method(IR_Scope parent,
                 IR_Scope lexicalParent,
                 java.lang.String name,
                 boolean isInstanceMethod)
Method Detail

addInstr

public void addInstr(IR_Instr i)
Specified by:
addInstr in interface IR_Scope
Overrides:
addInstr in class IR_ScopeImpl

getCallArgs

public Operand[] getCallArgs()

setConstantValue

public void setConstantValue(java.lang.String constRef,
                             Operand val)
Specified by:
setConstantValue in interface IR_Scope
Overrides:
setConstantValue in class IR_ScopeImpl

isAClassRootMethod

public boolean isAClassRootMethod()

setOptimizatableFlag

public void setOptimizatableFlag(boolean f)

isUnoptimizable

public boolean isUnoptimizable()

setCodeModificationFlag

public void setCodeModificationFlag(boolean f)

modifiesCode

public boolean modifiesCode()

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()

getDefiningModule

public IR_Module getDefiningModule()

getCodeVersionToken

public CodeVersion getCodeVersionToken()

toString

public java.lang.String toString()
Overrides:
toString in class IR_ScopeImpl


Copyright © 2002-2009 JRuby Team. All Rights Reserved.