1 30 package org.objectweb.asm.tree; 31 32 import org.objectweb.asm.MethodVisitor; 33 34 40 public class FieldInsnNode extends AbstractInsnNode { 41 42 46 public String owner; 47 48 51 public String name; 52 53 56 public String desc; 57 58 68 public FieldInsnNode( 69 final int opcode, 70 final String owner, 71 final String name, 72 final String desc) 73 { 74 super(opcode); 75 this.owner = owner; 76 this.name = name; 77 this.desc = desc; 78 } 79 80 86 public void setOpcode(final int opcode) { 87 this.opcode = opcode; 88 } 89 90 public void accept(final MethodVisitor cv) { 91 cv.visitFieldInsn(opcode, owner, name, desc); 92 } 93 94 public int getType() { 95 return FIELD_INSN; 96 } 97 } 98 | Popular Tags |