14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.bcel.internal.classfile;
23
24 import java.io.DataInput;
25 import java.io.DataOutputStream;
26 import java.io.IOException;
27
28 import com.sun.org.apache.bcel.internal.Const;
29
30 /**
31 * This class represents colection of local variables in a
32 * method. This attribute is contained in the <em>Code</em> attribute.
33 *
34 * @version $Id$
35 * @see Code
36 * @see LocalVariable
37 */
38 public class LocalVariableTable extends Attribute {
39
40 private LocalVariable[] local_variable_table; // variables
41
42
43 /**
44 * Initialize from another object. Note that both objects use the same
45 * references (shallow copy). Use copy() for a physical copy.
46 */
47 public LocalVariableTable(final LocalVariableTable c) {
48 this(c.getNameIndex(), c.getLength(), c.getLocalVariableTable(), c.getConstantPool());
49 }
50
51
52 /**
53 * @param name_index Index in constant pool to `LocalVariableTable'
54 * @param length Content length in bytes
|
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.bcel.internal.classfile;
23
24 import java.io.DataInput;
25 import java.io.DataOutputStream;
26 import java.io.IOException;
27
28 import com.sun.org.apache.bcel.internal.Const;
29
30 /**
31 * This class represents colection of local variables in a
32 * method. This attribute is contained in the <em>Code</em> attribute.
33 *
34 * @see Code
35 * @see LocalVariable
36 */
37 public class LocalVariableTable extends Attribute {
38
39 private LocalVariable[] local_variable_table; // variables
40
41
42 /**
43 * Initialize from another object. Note that both objects use the same
44 * references (shallow copy). Use copy() for a physical copy.
45 */
46 public LocalVariableTable(final LocalVariableTable c) {
47 this(c.getNameIndex(), c.getLength(), c.getLocalVariableTable(), c.getConstantPool());
48 }
49
50
51 /**
52 * @param name_index Index in constant pool to `LocalVariableTable'
53 * @param length Content length in bytes
|