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

public Class FieldInsnNode

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

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

Field Summary

Modifier and TypeField and Description
public String
desc

The field's descriptor (see org.objectweb.asm.Type).

public String
name

The field's name.

public String
owner

The internal name of the field's owner class (see org.objectweb.asm.Type#getInternalName()).

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
FieldInsnNode(final int
the opcode of the type instruction to be constructed. This opcode must be GETSTATIC, PUTSTATIC, GETFIELD or PUTFIELD.
opcode
,
final String
the internal name of the field's owner class (see org.objectweb.asm.Type#getInternalName()).
owner
,
final String
the field's name.
name
,
final String
the field's descriptor (see org.objectweb.asm.Type).
descriptor
)

Constructs a new FieldInsnNode.

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 int
getType()

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

Returns the type of this instruction.
public void
setOpcode(final int
the new instruction opcode. This opcode must be GETSTATIC, PUTSTATIC, GETFIELD or PUTFIELD.
opcode
)

Sets the opcode of this instruction.

Inherited from org.objectweb.asm.tree.AbstractInsnNode:
acceptAnnotationscloneclonecloneAnnotationsgetNextgetOpcodegetPrevious

Field Detail

descback to summary
public String desc

The field's descriptor (see org.objectweb.asm.Type).

nameback to summary
public String name

The field's name.

ownerback to summary
public String owner

The internal name of the field's owner class (see org.objectweb.asm.Type#getInternalName()).

Constructor Detail

FieldInsnNodeback to summary
public FieldInsnNode(final int opcode, final String owner, final String name, final String descriptor)

Constructs a new FieldInsnNode.

Parameters
opcode:int

the opcode of the type instruction to be constructed. This opcode must be GETSTATIC, PUTSTATIC, GETFIELD or PUTFIELD.

owner:String

the internal name of the field's owner class (see org.objectweb.asm.Type#getInternalName()).

name:String

the field's name.

descriptor:String

the field's descriptor (see org.objectweb.asm.Type).

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
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
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 GETSTATIC, PUTSTATIC, GETFIELD or PUTFIELD.