org.jruby.compiler.ir.operands
Class LocalVariable

java.lang.Object
  extended by org.jruby.compiler.ir.operands.Operand
      extended by org.jruby.compiler.ir.operands.Variable
          extended by org.jruby.compiler.ir.operands.LocalVariable
All Implemented Interfaces:
java.lang.Comparable

public class LocalVariable
extends Variable

Author:
enebo

Field Summary
 java.lang.String name
           
 
Fields inherited from class org.jruby.compiler.ir.operands.Operand
EMPTY_ARRAY
 
Constructor Summary
LocalVariable(java.lang.String name, int location)
           
 
Method Summary
 int compareTo(java.lang.Object arg0)
           
 boolean equals(java.lang.Object obj)
           
 int getLocation()
           
 java.lang.String getName()
           
 int hashCode()
           
 boolean isSelf()
           
 java.lang.Object retrieve(InterpreterContext interp)
           
 void setLocation(int slot)
           
 java.lang.Object store(InterpreterContext interp, java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jruby.compiler.ir.operands.Variable
addUsedVariables, cloneForInlining, getSimplifiedOperand, getValue
 
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

LocalVariable

public LocalVariable(java.lang.String name,
                     int location)
Method Detail

setLocation

public void setLocation(int slot)

getLocation

public int getLocation()

getName

public java.lang.String getName()
Specified by:
getName in class Variable

toString

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

hashCode

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

isSelf

public boolean isSelf()

equals

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

compareTo

public int compareTo(java.lang.Object arg0)

retrieve

public java.lang.Object retrieve(InterpreterContext interp)
Overrides:
retrieve in class Operand

store

public java.lang.Object store(InterpreterContext interp,
                              java.lang.Object value)
Overrides:
store in class Operand


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