org.jruby.compiler.ir.operands
Class Variable

java.lang.Object
  extended by org.jruby.compiler.ir.operands.Operand
      extended by org.jruby.compiler.ir.operands.Variable
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
GlobalVariable

public class Variable
extends Operand
implements java.lang.Comparable


Field Summary
 java.lang.String _name
           
 
Fields inherited from class org.jruby.compiler.ir.operands.Operand
EMPTY_ARRAY
 
Constructor Summary
Variable(java.lang.String n)
           
 
Method Summary
 void addUsedVariables(java.util.List<Variable> l)
          Append the list of variables used in this operand to the input list
 int compareTo(java.lang.Object arg0)
           
 boolean equals(java.lang.Object obj)
           
 Operand getSimplifiedOperand(java.util.Map<Operand,Operand> valueMap)
           
 Operand getValue(java.util.Map<Operand,Operand> valueMap)
           
 int hashCode()
           
 boolean isSelf()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jruby.compiler.ir.operands.Operand
fetchCompileTimeArrayElement, getTargetClass, isConstant, isNonAtomicValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_name

public final java.lang.String _name
Constructor Detail

Variable

public Variable(java.lang.String n)
Method Detail

toString

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

isSelf

public boolean isSelf()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object arg0)
Specified by:
compareTo in interface java.lang.Comparable

getSimplifiedOperand

public Operand getSimplifiedOperand(java.util.Map<Operand,Operand> valueMap)
Overrides:
getSimplifiedOperand in class Operand

getValue

public Operand getValue(java.util.Map<Operand,Operand> valueMap)
Overrides:
getValue in class Operand

addUsedVariables

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

Overrides:
addUsedVariables in class Operand


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