Top Constructors Methods
org.jruby.ir.instructions

public Class JumpInstr

extends OneOperandInstr
implements FixedArityInstr, JumpTargetInstr
Class Inheritance
All Implemented Interfaces
org.jruby.ir.instructions.JumpTargetInstr, org.jruby.ir.instructions.FixedArityInstr
Imports
org.jruby.ir.IRVisitor, .Operation, org.jruby.ir.operands.Label, org.jruby.ir.persistence.IRReaderDecoder, .IRWriterEncoder, org.jruby.ir.transformations.inlining.CloneInfo

Constructor Summary

AccessConstructor and Description
public
JumpInstr(Label target)

Method Summary

Modifier and TypeMethod and Description
public Instr
clone(CloneInfo
This object manages renaming of variables and labels, handles args and return values.
ii
)

Implements abstract org.jruby.ir.instructions.Instr.clone.

Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope).

public static JumpInstr
public void
public Label
public void
public void
Inherited from org.jruby.ir.instructions.OneOperandInstr:
getOperand1getOperandssetOperandsetOperand1

Constructor Detail

JumpInstrback to summary
public JumpInstr(Label target)

Method Detail

cloneback to summary
public Instr clone(CloneInfo ii)

Implements abstract org.jruby.ir.instructions.Instr.clone.

Doc from org.jruby.ir.instructions.Instr.clone.

Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope). This might renaming variables and labels to eliminate naming conflicts. The implementation might vary on the cloning mode.

Parameters
ii:CloneInfo

This object manages renaming of variables and labels, handles args and return values.

Returns:Instr

a new instruction that can be used in the target scope.

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

Overrides org.jruby.ir.instructions.Instr.encode.

Annotations
@Override
getJumpTargetback to summary
public Label getJumpTarget()

Implements org.jruby.ir.instructions.JumpTargetInstr.getJumpTarget.

setJumpTargetback to summary
public void setJumpTarget(Label target)

Implements org.jruby.ir.instructions.JumpTargetInstr.setJumpTarget.

visitback to summary
public void visit(IRVisitor visitor)

Overrides org.jruby.ir.instructions.Instr.visit.

Annotations
@Override