org.jruby.compiler.ir.operands
Class Operand

java.lang.Object
  extended by org.jruby.compiler.ir.operands.Operand
Direct Known Subclasses:
ArgIndex, Array, Attribute, Backref, BacktickString, CompoundArray, CompoundString, Constant, DynamicReference, Hash, Label, MetaObject, NthRef, Range, Reference, Regexp, Splat, SValue, Variable

public abstract class Operand
extends java.lang.Object


Field Summary
static Operand[] EMPTY_ARRAY
           
 
Constructor Summary
Operand()
           
 
Method Summary
 void addUsedVariables(java.util.List<Variable> l)
          Append the list of variables used in this operand to the input list
 Operand fetchCompileTimeArrayElement(int index, boolean getSubArray)
           
 Operand getSimplifiedOperand(java.util.Map<Operand,Operand> valueMap)
           
 IR_Class getTargetClass()
           
 Operand getValue(java.util.Map<Operand,Operand> valueMap)
           
 boolean isConstant()
           
 boolean isNonAtomicValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

public static final Operand[] EMPTY_ARRAY
Constructor Detail

Operand

public Operand()
Method Detail

isConstant

public boolean isConstant()

isNonAtomicValue

public boolean isNonAtomicValue()

getSimplifiedOperand

public Operand getSimplifiedOperand(java.util.Map<Operand,Operand> valueMap)

getValue

public Operand getValue(java.util.Map<Operand,Operand> valueMap)

fetchCompileTimeArrayElement

public Operand fetchCompileTimeArrayElement(int index,
                                            boolean getSubArray)

getTargetClass

public IR_Class getTargetClass()

addUsedVariables

public void addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list



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