org.jruby.compiler.ir.operands
Class TemporaryVariable

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.TemporaryVariable
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
RenamedVariable, TemporaryClosureVariable

public class TemporaryVariable
extends Variable

A set of variables which are only used in a particular scope and never visible to Ruby itself.


Field Summary
 
Fields inherited from class org.jruby.compiler.ir.operands.Operand
EMPTY_ARRAY
 
Constructor Summary
TemporaryVariable(int offset)
           
 
Method Summary
 int compareTo(java.lang.Object other)
           
 java.lang.String getName()
           
 java.lang.String getPrefix()
           
 java.lang.Object retrieve(InterpreterContext interp)
           
 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemporaryVariable

public TemporaryVariable(int offset)
Method Detail

getName

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

compareTo

public int compareTo(java.lang.Object other)

getPrefix

public java.lang.String getPrefix()

toString

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

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.