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

public Class VarInsnNode

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

A node that represents a local variable instruction. A local variable instruction is an instruction that loads or stores the value of a local variable.
Author
Eric Bruneton

Field Summary

Modifier and TypeField and Description
public int
var

The operand of this instruction.

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
VarInsnNode(final int
the opcode of the local variable instruction to be constructed. This opcode must be ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE, LSTORE, FSTORE, DSTORE, ASTORE or RET.
opcode
,
final int
the operand of the instruction to be constructed. This operand is the index of a local variable.
varIndex
)

Constructs a new VarInsnNode.

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.
public void
setOpcode(final int
the new instruction opcode. This opcode must be ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE, LSTORE, FSTORE, DSTORE, ASTORE or RET.
opcode
)

Sets the opcode of this instruction.

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

Field Detail

varback to summary
public int var

The operand of this instruction. This operand is the index of a local variable.

Constructor Detail

VarInsnNodeback to summary
public VarInsnNode(final int opcode, final int varIndex)

Constructs a new VarInsnNode.

Parameters
opcode:int

the opcode of the local variable instruction to be constructed. This opcode must be ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE, LSTORE, FSTORE, DSTORE, ASTORE or RET.

varIndex:int

the operand of the instruction to be constructed. This operand is the index of a local variable.

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
setOpcodeback to summary
public void setOpcode(final int opcode)

Sets the opcode of this instruction.

Parameters
opcode:int

the new instruction opcode. This opcode must be ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE, LSTORE, FSTORE, DSTORE, ASTORE or RET.