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

public Class InlinedLineNumberInstr

extends LineNumberInstr
Class Inheritance
Imports
java.util.Arrays, org.jruby.ir.IRScope, org.jruby.ir.transformations.inlining.CloneInfo

This represents a linenumber instr that has been inlined into another method/closure. It's purpose is to record the scope so that if we are debugging we can know where this instr originally came from.

Field Summary

Modifier and TypeField and Description
private final IRScope
Inherited from org.jruby.ir.instructions.LineNumberInstr:
coveragelineNumberoneshot

Constructor Summary

AccessConstructor and Description
public
InlinedLineNumberInstr(IRScope scope, int lineNumber)

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
)

Overrides org.jruby.ir.instructions.LineNumberInstr.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 IRScope
public String[]
Inherited from org.jruby.ir.instructions.LineNumberInstr:
decodeencodegetLineNumberisCoverageisOneshotvisit

Field Detail

scopeback to summary
private final IRScope scope

Constructor Detail

InlinedLineNumberInstrback to summary
public InlinedLineNumberInstr(IRScope scope, int lineNumber)

Method Detail

cloneback to summary
public Instr clone(CloneInfo ii)

Overrides org.jruby.ir.instructions.LineNumberInstr.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
getScopeback to summary
public IRScope getScope()
toStringNonOperandArgsback to summary
public String[] toStringNonOperandArgs()

Overrides org.jruby.ir.instructions.LineNumberInstr.toStringNonOperandArgs.

Annotations
@Override