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, BoxedValue, BreakResult, CompoundArray, CompoundString, Constant, DynamicReference, Hash, Label, MetaObject, MethodHandle, NthRef, Range, Reference, Regexp, Splat, StandardError, SValue, UnboxedValue, 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 cloneForInlining(InlinerInfo ii)
           
 Operand fetchCompileTimeArrayElement(int index, boolean getSubArray)
           
 Operand getSimplifiedOperand(java.util.Map<Operand,Operand> valueMap)
           
 IRClass getTargetClass()
           
 Operand getValue(java.util.Map<Operand,Operand> valueMap)
           
 boolean isConstant()
           
 boolean isNonAtomicValue()
           
 java.lang.Object retrieve(InterpreterContext interp)
           
 java.lang.Object store(InterpreterContext interp, java.lang.Object value)
           
 
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 IRClass getTargetClass()

addUsedVariables

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


cloneForInlining

public Operand cloneForInlining(InlinerInfo ii)

retrieve

public java.lang.Object retrieve(InterpreterContext interp)

store

public java.lang.Object store(InterpreterContext interp,
                              java.lang.Object value)


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