org.jruby.compiler.ir.operands
Class Variable
java.lang.Object
org.jruby.compiler.ir.operands.Operand
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
|
Constructor Summary |
Variable(java.lang.String n)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
_name
public final java.lang.String _name
Variable
public Variable(java.lang.String n)
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.