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

public Class TemporaryLocalReplacementVariable

extends TemporaryLocalVariable
implements DepthCloneable
Class Inheritance
All Implemented Interfaces
org.jruby.ir.operands.DepthCloneable
Imports
org.jruby.RubySymbol, org.jruby.ir.transformations.inlining.SimpleCloneInfo

When we optimize full local variables to be temporary ones we like to keep the name of what we renamed them as. This is just enough wrapper for us to maintain a nice debug string.

Field Summary

Modifier and TypeField and Description
private final String
public static final String
Inherited from org.jruby.ir.operands.TemporaryLocalVariable:
offset

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Variable
public Operand
cloneForDepth(int n)

Implements org.jruby.ir.operands.DepthCloneable.cloneForDepth.

How deep is this operand from where it is defined?

public String
public String
Inherited from org.jruby.ir.operands.TemporaryLocalVariable:
decodeencodegetOffsetgetTyperetrievevisit

Field Detail

oldNameback to summary
private final String oldName
PREFIXback to summary
public static final String PREFIX

Hides org.jruby.ir.operands.TemporaryLocalVariable.PREFIX.

Constructor Detail

TemporaryLocalReplacementVariableback to summary
public TemporaryLocalReplacementVariable(String oldName, int offset)

Method Detail

cloneback to summary
public Variable clone(SimpleCloneInfo ii)

Overrides org.jruby.ir.operands.TemporaryLocalVariable.clone.

Annotations
@Override
cloneForDepthback to summary
public Operand cloneForDepth(int n)

Implements org.jruby.ir.operands.DepthCloneable.cloneForDepth.

Doc from org.jruby.ir.operands.DepthCloneable.cloneForDepth.

How deep is this operand from where it is defined?

Annotations
@Override
getIdback to summary
public String getId()

Overrides org.jruby.ir.operands.TemporaryLocalVariable.getId.

Annotations
@Override
getPrefixback to summary
public String getPrefix()

Overrides org.jruby.ir.operands.TemporaryLocalVariable.getPrefix.

Annotations
@Override