org.jruby.compiler.ir.operands
Class RenamedVariable

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
              extended by org.jruby.compiler.ir.operands.RenamedVariable
All Implemented Interfaces:
java.lang.Comparable

public class RenamedVariable
extends TemporaryVariable

Generic variable with a custom prefix -- mostly used during optimization passes where we need to rename existing variables


Field Summary
 
Fields inherited from class org.jruby.compiler.ir.operands.Operand
EMPTY_ARRAY
 
Constructor Summary
RenamedVariable(java.lang.String prefix, int offset)
           
 
Method Summary
 java.lang.String getPrefix()
           
 java.lang.Object retrieve(InterpreterContext interp)
           
 java.lang.Object store(InterpreterContext interp, java.lang.Object value)
           
 
Methods inherited from class org.jruby.compiler.ir.operands.TemporaryVariable
compareTo, getName, 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

RenamedVariable

public RenamedVariable(java.lang.String prefix,
                       int offset)
Method Detail

getPrefix

public java.lang.String getPrefix()
Overrides:
getPrefix in class TemporaryVariable

retrieve

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

store

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


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