85 /** 86 * The first instruction corresponding to the scope of this local variable 87 * (inclusive). 88 */ 89 public LabelNode start; 90 91 /** 92 * The last instruction corresponding to the scope of this local variable 93 * (exclusive). 94 */ 95 public LabelNode end; 96 97 /** 98 * The local variable's index. 99 */ 100 public int index; 101 102 /** 103 * Constructs a new {@link LocalVariableNode}. 104 * 105 * @param name the name of a local variable. 106 * @param desc the type descriptor of this local variable. 107 * @param signature the signature of this local variable. May be 108 * <tt>null</tt>. 109 * @param start the first instruction corresponding to the scope of this 110 * local variable (inclusive). 111 * @param end the last instruction corresponding to the scope of this local 112 * variable (exclusive). 113 * @param index the local variable's index. 114 */ 115 public LocalVariableNode( 116 final String name, 117 final String desc, 118 final String signature, 119 final LabelNode start, 120 final LabelNode end, 121 final int index) 122 { 123 this.name = name; 124 this.desc = desc; 125 this.signature = signature; 126 this.start = start; 127 this.end = end; 128 this.index = index; 129 } 130 131 /** 132 * Makes the given visitor visit this local variable declaration. 133 * 134 * @param mv a method visitor. 135 */ 136 public void accept(final MethodVisitor mv) { 137 mv.visitLocalVariable(name, 138 desc, 139 signature, 140 start.getLabel(), 141 end.getLabel(), 142 index); 143 } 144 } | 85 /** 86 * The first instruction corresponding to the scope of this local variable 87 * (inclusive). 88 */ 89 public LabelNode start; 90 91 /** 92 * The last instruction corresponding to the scope of this local variable 93 * (exclusive). 94 */ 95 public LabelNode end; 96 97 /** 98 * The local variable's index. 99 */ 100 public int index; 101 102 /** 103 * Constructs a new {@link LocalVariableNode}. 104 * 105 * @param name 106 * the name of a local variable. 107 * @param desc 108 * the type descriptor of this local variable. 109 * @param signature 110 * the signature of this local variable. May be <tt>null</tt>. 111 * @param start 112 * the first instruction corresponding to the scope of this local 113 * variable (inclusive). 114 * @param end 115 * the last instruction corresponding to the scope of this local 116 * variable (exclusive). 117 * @param index 118 * the local variable's index. 119 */ 120 public LocalVariableNode(final String name, final String desc, 121 final String signature, final LabelNode start, final LabelNode end, 122 final int index) { 123 this.name = name; 124 this.desc = desc; 125 this.signature = signature; 126 this.start = start; 127 this.end = end; 128 this.index = index; 129 } 130 131 /** 132 * Makes the given visitor visit this local variable declaration. 133 * 134 * @param mv 135 * a method visitor. 136 */ 137 public void accept(final MethodVisitor mv) { 138 mv.visitLocalVariable(name, desc, signature, start.getLabel(), 139 end.getLabel(), index); 140 } 141 } |