Klasse LocalVariableTable
java.lang.Object
org.aspectj.apache.bcel.classfile.Attribute
org.aspectj.apache.bcel.classfile.LocalVariableTable
- Alle implementierten Schnittstellen:
Serializable,Cloneable,Node
This class represents collection of local variables in a method. This attribute is contained in the Code attribute.
- Version:
- $Id: LocalVariableTable.java,v 1.8 2009/09/15 19:40:12 aclement Exp $
- Autor:
- M. Dahm
- Siehe auch:
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungLocalVariableTable(int name_index, int length, LocalVariable[] local_variable_table, ConstantPool constant_pool) Initialize from another object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidCalled by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.Returns copy of this attribute using same packed state.final voiddump(DataOutputStream file) Dump local variable table attribute to file stream in binary format.final LocalVariablegetLocalVariable(int index) final LocalVariable[]final intfinal voidsetLocalVariableTable(LocalVariable[] local_variable_table) final StringtoString()Von Klasse geerbte Methoden org.aspectj.apache.bcel.classfile.Attribute
getConstantPool, getLength, getName, getNameIndex, getTag, readAttribute
-
Konstruktordetails
-
LocalVariableTable
Initialize from another object. Note that both objects use the same references (shallow copy). Use copy() for a physical copy. -
LocalVariableTable
public LocalVariableTable(int name_index, int length, LocalVariable[] local_variable_table, ConstantPool constant_pool) - Parameter:
name_index- Index in constant pool to `LocalVariableTable'length- Content length in byteslocal_variable_table- Table of local variablesconstant_pool- Array of constants
-
-
Methodendetails
-
accept
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects. -
dump
Dump local variable table attribute to file stream in binary format.- Setzt außer Kraft:
dumpin KlasseAttribute- Parameter:
file- Output file stream- Löst aus:
IOException
-
getLocalVariableTable
- Gibt zurück:
- Array of local variables of method.
-
getLocalVariable
- Gibt zurück:
- first matching variable using index
-
setLocalVariableTable
-
toString
-
copyFromPackedState
Returns copy of this attribute using same packed state. Used in unit tests. -
getTableLength
public final int getTableLength()- Gibt zurück:
- deep copy of this attribute
-