Code, LocalVariable
| Modifier and Type | Field and Description |
|---|---|
| private static final LocalVariable[] | |
| private LocalVariable[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | LocalVariableTable(final int
Index in constant pool nameIndex, final int Content length in bytes length, final DataInput Input stream input, final ConstantPool Array of constants constantPool)Constructs object from input stream. |
| public | LocalVariableTable(final int
Index in constant pool to 'LocalVariableTable' nameIndex, final int Content length in bytes length, final LocalVariable[] Table of local variables localVariableTable, final ConstantPool Array of constants constantPool)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(final Visitor
Visitor object v)Implements abstract com. Implements com. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. |
| public Attribute | copy(final ConstantPool constantPool)
Implements abstract com. Returns: deep copy of this attribute |
| public final void | dump(final DataOutputStream
Output file stream file)Overrides com. Dump local variable table attribute to file stream in binary format. |
| public final LocalVariable | getLocalVariable(final int
the variable slot index)
Deprecated
since 5.2 because multiple variables can share the same slot, use getLocalVariable(int index, int pc)
instead.
Returns: the first LocalVariable that matches the slot or null if not found |
| public final LocalVariable | getLocalVariable(final int
the variable slot index, final int the current pc that this variable is alive pc)Returns: the LocalVariable that matches or null if not found |
| public final LocalVariable[] | |
| public final int | |
| public Iterator | |
| public final void | |
| public final String | Returns: String representation.Overrides com. Returns a string representation of the object. |
| EMPTY_ARRAY | back to summary |
|---|---|
| private static final LocalVariable[] EMPTY_ARRAY Hides com. | |
| localVariableTable | back to summary |
|---|---|
| private LocalVariable[] localVariableTable | |
| LocalVariableTable | back to summary |
|---|---|
| pack-priv LocalVariableTable(final int nameIndex, final int length, final DataInput input, final ConstantPool constantPool) throws IOException Constructs object from input stream.
| |
| LocalVariableTable | back to summary |
|---|---|
public LocalVariableTable(final int nameIndex, final int length, final LocalVariable[] localVariableTable, final ConstantPool constantPool)
| |
| LocalVariableTable | back to summary |
|---|---|
| public LocalVariableTable(final LocalVariableTable c) Initialize from another object. Note that both objects use the same references (shallow copy). Use copy() for a physical copy.
| |
| accept | back to summary |
|---|---|
| public void accept(final Visitor v) Implements abstract com. Implements com. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects. | |
| copy | back to summary |
|---|---|
| public Attribute copy(final ConstantPool constantPool) Implements abstract com. | |
| dump | back to summary |
|---|---|
| public final void dump(final DataOutputStream file) throws IOException Overrides com. Dump local variable table attribute to file stream in binary format.
| |
| getLocalVariable | back to summary |
|---|---|
| public final LocalVariable getLocalVariable(final int index)
Deprecated since 5.2 because multiple variables can share the same slot, use getLocalVariable(int index, int pc) instead.
| |
| getLocalVariable | back to summary |
|---|---|
public final LocalVariable getLocalVariable(final int index, final int pc)
| |
| getLocalVariableTable | back to summary |
|---|---|
public final LocalVariable[] getLocalVariableTable()
| |
| getTableLength | back to summary |
|---|---|
| public final int getTableLength() | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| setLocalVariableTable | back to summary |
|---|---|
| public final void setLocalVariableTable(final LocalVariable[] localVariableTable) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides com. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |