Top Description Fields Constructors Methods
org.eclipse.persistence.internal.libraries.asm.tree

public Class TableSwitchInsnNode

extends AbstractInsnNode
Class Inheritance
Imports
java.util.List, .Map, org.eclipse.persistence.internal.libraries.asm.Label, .MethodVisitor, .Opcodes

A node that represents a TABLESWITCH instruction.
Author
Eric Bruneton

Field Summary

Modifier and TypeField and Description
public LabelNode
dflt

Beginning of the default handler block.

public List<LabelNode>
labels

Beginnings of the handler blocks.

public int
max

The maximum key value.

public int
min

The minimum key value.

Inherited from org.eclipse.persistence.internal.libraries.asm.tree.AbstractInsnNode:
FIELD_INSNFRAMEIINC_INSNindexINSNINT_INSNinvisibleTypeAnnotationsINVOKE_DYNAMIC_INSNJUMP_INSNLABELLDC_INSNLINELOOKUPSWITCH_INSNMETHOD_INSNMULTIANEWARRAY_INSNnextInsnopcodepreviousInsnTABLESWITCH_INSNTYPE_INSNVAR_INSNvisibleTypeAnnotations

Constructor Summary

AccessConstructor and Description
public
TableSwitchInsnNode(final int
the minimum key value.
min
,
final int
the maximum key value.
max
,
final LabelNode
beginning of the default handler block.
dflt
,
final LabelNode...
beginnings of the handler blocks. labels[i] is the beginning of the handler block for the min + i key.
labels
)

Constructs a new TableSwitchInsnNode.

Method Summary

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

Implements abstract org.eclipse.persistence.internal.libraries.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.eclipse.persistence.internal.libraries.asm.tree.AbstractInsnNode.clone.

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

Implements abstract org.eclipse.persistence.internal.libraries.asm.tree.AbstractInsnNode.getType.

Returns the type of this instruction.
Inherited from org.eclipse.persistence.internal.libraries.asm.tree.AbstractInsnNode:
acceptAnnotationscloneclonecloneAnnotationsgetNextgetOpcodegetPrevious

Field Detail

dfltback to summary
public LabelNode dflt

Beginning of the default handler block.

labelsback to summary
public List<LabelNode> labels

Beginnings of the handler blocks. This list is a list of LabelNode objects.

maxback to summary
public int max

The maximum key value.

minback to summary
public int min

The minimum key value.

Constructor Detail

TableSwitchInsnNodeback to summary
public TableSwitchInsnNode(final int min, final int max, final LabelNode dflt, final LabelNode... labels)

Constructs a new TableSwitchInsnNode.

Parameters
min:int

the minimum key value.

max:int

the maximum key value.

dflt:LabelNode

beginning of the default handler block.

labels:LabelNode[]

beginnings of the handler blocks. labels[i] is the beginning of the handler block for the min + i key.

Method Detail

acceptback to summary
public void accept(final MethodVisitor methodVisitor)

Implements abstract org.eclipse.persistence.internal.libraries.asm.tree.AbstractInsnNode.accept.

Doc from org.eclipse.persistence.internal.libraries.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.eclipse.persistence.internal.libraries.asm.tree.AbstractInsnNode.clone.

Doc from org.eclipse.persistence.internal.libraries.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 org.eclipse.persistence.internal.libraries.asm.tree.AbstractInsnNode.getType.

Doc from org.eclipse.persistence.internal.libraries.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