FileDocCategorySizeDatePackage
FieldInsnNode.javaAPI DocGlassfish v2 API3448Thu Mar 02 11:51:14 GMT 2006oracle.toplink.libraries.asm.tree

FieldInsnNode

public class FieldInsnNode extends AbstractInsnNode
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

Fields Summary
public String
owner
The internal name of the field's owner class (see {@link oracle.toplink.libraries.asm.Type#getInternalName() getInternalName}).
public String
name
The field's name.
public String
desc
The field's descriptor (see {@link oracle.toplink.libraries.asm.Type Type}).
Constructors Summary
public FieldInsnNode(int opcode, String owner, String name, String desc)
Constructs a new {@link FieldInsnNode FieldInsnNode} object.

param
opcode the opcode of the type instruction to be constructed. This opcode must be GETSTATIC, PUTSTATIC, GETFIELD or PUTFIELD.
param
owner the internal name of the field's owner class (see {@link oracle.toplink.libraries.asm.Type#getInternalName() getInternalName}).
param
name the field's name.
param
desc the field's descriptor (see {@link oracle.toplink.libraries.asm.Type Type}).

    super(opcode);
    this.owner = owner;
    this.name = name;
    this.desc = desc;
  
Methods Summary
public voidaccept(oracle.toplink.libraries.asm.CodeVisitor cv)

    cv.visitFieldInsn(opcode, owner, name, desc);
  
public voidsetOpcode(int opcode)
Sets the opcode of this instruction.

param
opcode the new instruction opcode. This opcode must be GETSTATIC, PUTSTATIC, GETFIELD or PUTFIELD.

    this.opcode = opcode;