1 30 package com.tc.asm.tree; 31 32 import com.tc.asm.MethodVisitor; 33 34 39 public abstract class AbstractInsnNode { 40 41 44 public final static int INSN = 0; 45 46 49 public final static int INT_INSN = 1; 50 51 54 public final static int VAR_INSN = 2; 55 56 59 public final static int TYPE_INSN = 3; 60 61 64 public final static int FIELD_INSN = 4; 65 66 69 public final static int METHOD_INSN = 5; 70 71 74 public final static int JUMP_INSN = 6; 75 76 79 public final static int LABEL = 7; 80 81 84 public final static int LDC_INSN = 8; 85 86 89 public final static int IINC_INSN = 9; 90 91 94 public final static int TABLESWITCH_INSN = 10; 95 96 99 public final static int LOOKUPSWITCH_INSN = 11; 100 101 104 public final static int MULTIANEWARRAY_INSN = 12; 105 106 109 protected int opcode; 110 111 116 protected AbstractInsnNode(final int opcode) { 117 this.opcode = opcode; 118 } 119 120 125 public int getOpcode() { 126 return opcode; 127 } 128 129 135 public abstract int getType(); 136 137 142 public abstract void accept(final MethodVisitor cv); 143 } 144 | Popular Tags |