org.jruby.compiler.ir.operands
Class Operand
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_ARRAY
public static final Operand[] EMPTY_ARRAY
Operand
public Operand()
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.