Top Description Fields Constructors Methods
jdk.internal.org.objectweb.asm.tree

public Class LineNumberNode

extends AbstractInsnNode
Class Inheritance
Imports
java.util.Map, jdk.internal.org.objectweb.asm.MethodVisitor

A node that represents a line number declaration. These nodes are pseudo instruction nodes in order to be inserted in an instruction list.
Author
Eric Bruneton

Field Summary

Modifier and TypeField and Description
public int
line

A line number.

public LabelNode
start

The first instruction corresponding to this line number.

Inherited from jdk.internal.org.objectweb.asm.tree.AbstractInsnNode:
FIELD_INSNFRAMEIINC_INSNindexINSNINT_INSNinvisibleTypeAnnotationsINVOKE_DYNAMIC_INSNJUMP_INSNLABELLDC_INSNLINELOOKUPSWITCH_INSNMETHOD_INSNMULTIANEWARRAY_INSNnextInsnopcodepreviousInsnTABLESWITCH_INSNTYPE_INSNVAR_INSNvisibleTypeAnnotations

Constructor Summary

AccessConstructor and Description
public
LineNumberNode(final int
a line number. This number refers to the source file from which the class was compiled.
line
,
final LabelNode
the first instruction corresponding to this line number.
start
)

Constructs a new LineNumberNode.

Method Summary

Modifier and TypeMethod and Description
public void
accept(final MethodVisitor
a method visitor.
methodVisitor
)

Implements abstract jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.accept.

Makes the given method visitor visit this instruction.
public AbstractInsnNode
clone(final Map<LabelNode, LabelNode>
a map from LabelNodes to cloned LabelNodes.
clonedLabels
)

Implements abstract jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.clone.

Returns a copy of this instruction.
public int
getType()

Implements abstract jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.getType.

Returns the type of this instruction.
Inherited from jdk.internal.org.objectweb.asm.tree.AbstractInsnNode:
acceptAnnotationscloneclonecloneAnnotationsgetNextgetOpcodegetPrevious

Field Detail

lineback to summary
public int line

A line number. This number refers to the source file from which the class was compiled.

startback to summary
public LabelNode start

The first instruction corresponding to this line number.

Constructor Detail

LineNumberNodeback to summary
public LineNumberNode(final int line, final LabelNode start)

Constructs a new LineNumberNode.

Parameters
line:int

a line number. This number refers to the source file from which the class was compiled.

start:LabelNode

the first instruction corresponding to this line number.

Method Detail

acceptback to summary
public void accept(final MethodVisitor methodVisitor)

Implements abstract jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.accept.

Doc from jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.accept.

Makes the given method visitor visit this instruction.

Parameters
methodVisitor:MethodVisitor

a method visitor.

Annotations
@Override
cloneback to summary
public AbstractInsnNode clone(final Map<LabelNode, LabelNode> clonedLabels)

Implements abstract jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.clone.

Doc from jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.clone.

Returns a copy of this instruction.

Parameters
clonedLabels:Map<LabelNode, LabelNode>

a map from LabelNodes to cloned LabelNodes.

Returns:AbstractInsnNode

a copy of this instruction. The returned instruction does not belong to any InsnList.

Annotations
@Override
getTypeback to summary
public int getType()

Implements abstract jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.getType.

Doc from jdk.internal.org.objectweb.asm.tree.AbstractInsnNode.getType.

Returns the type of this instruction.

Returns:int

the type of this instruction, i.e. one the constants defined in this class.

Annotations
@Override