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

public Class LabelNode

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

An AbstractInsnNode that encapsulates a Label.

Field Summary

Modifier and TypeField and Description
private Label
Inherited from 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
public
LabelNode(final Label label)

Method Summary

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

Implements abstract 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 org.objectweb.asm.tree.AbstractInsnNode.clone.

Returns a copy of this instruction.
public Label

Returns:

the label encapsulated by this node.
getLabel
()

Returns the label encapsulated by this node.

public int
getType()

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

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

Field Detail

valueback to summary
private Label value

Constructor Detail

LabelNodeback to summary
public LabelNode()
LabelNodeback to summary
public LabelNode(final Label label)

Method Detail

acceptback to summary
public void accept(final MethodVisitor methodVisitor)

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

Doc from 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 org.objectweb.asm.tree.AbstractInsnNode.clone.

Doc from 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
getLabelback to summary
public Label getLabel()

Returns the label encapsulated by this node. A new label is created and associated with this node if it was created without an encapsulated label.

Returns:Label

the label encapsulated by this node.

getTypeback to summary
public int getType()

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

Doc from 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
resetLabelback to summary
public void resetLabel()