Top Description Fields Constructors Methods
org.jruby.ir.operands

public Class TemporaryLocalVariable

extends TemporaryVariable
Class Inheritance
Known Direct Subclasses
org.jruby.ir.operands.TemporaryBooleanVariable, org.jruby.ir.operands.TemporaryClosureVariable, org.jruby.ir.operands.TemporaryCurrentModuleVariable, org.jruby.ir.operands.TemporaryFixnumVariable, org.jruby.ir.operands.TemporaryFloatVariable, org.jruby.ir.operands.TemporaryIntVariable, org.jruby.ir.operands.TemporaryLocalReplacementVariable
Imports
org.jruby.ir.IRVisitor, org.jruby.ir.persistence.IRReaderDecoder, .IRWriterEncoder, org.jruby.ir.transformations.inlining.SimpleCloneInfo, org.jruby.parser.StaticScope, org.jruby.runtime.DynamicScope, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

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

Field Summary

Modifier and TypeField and Description
public final int
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Variable
public static TemporaryLocalVariable
public void
public String
public int
public String
public TemporaryVariableType
getType()

Implements abstract org.jruby.ir.operands.TemporaryVariable.getType.

Differentiates between different types of TemporaryVariables (useful for switch and persistence).

public Object
public void
Inherited from org.jruby.ir.operands.TemporaryVariable:
equalsgetOperandTypehashCodetoString

Field Detail

offsetback to summary
public final int offset
PREFIXback to summary
public static final String PREFIX

Constructor Detail

TemporaryLocalVariableback to summary
public TemporaryLocalVariable(int offset)

Method Detail

cloneback to summary
public Variable clone(SimpleCloneInfo ii)

Implements abstract org.jruby.ir.operands.Variable.clone.

Annotations
@Override
decodeback to summary
public static TemporaryLocalVariable decode(IRReaderDecoder d)
encodeback to summary
public void encode(IRWriterEncoder e)

Overrides org.jruby.ir.operands.Operand.encode.

Annotations
@Override
getIdback to summary
public String getId()

Implements abstract org.jruby.ir.operands.Variable.getId.

getOffsetback to summary
public int getOffset()
getPrefixback to summary
public String getPrefix()
getTypeback to summary
public TemporaryVariableType getType()

Implements abstract org.jruby.ir.operands.TemporaryVariable.getType.

Doc from org.jruby.ir.operands.TemporaryVariable.getType.

Differentiates between different types of TemporaryVariables (useful for switch and persistence).

Annotations
@Override
retrieveback to summary
public Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp)

Overrides org.jruby.ir.operands.Operand.retrieve.

Annotations
@Override
visitback to summary
public void visit(IRVisitor visitor)

Overrides org.jruby.ir.operands.TemporaryVariable.visit.

Annotations
@Override