LocalVariableTable, LocalVariableTypeTable
| Modifier and Type | Field and Description |
|---|---|
| private ConstantPool | |
| pack-priv static final LocalVariable[] | |
| private int | |
| private int | |
| private int | nameIndex
Index in constant pool of variable name. |
| private final int | origIndex
Never changes; used to match up with LocalVariableTypeTable entries. |
| private int | signatureIndex
Technically, a decscriptor_index for a local variable table entry and a signatureIndex for a local variable type table entry. |
| private int | startPc
Range in which the variable is valid. |
| Access | Constructor and Description |
|---|---|
| pack-priv | LocalVariable(final DataInput
Input stream file, final ConstantPool constantPool)Constructs object from file stream. |
| public | LocalVariable(final int
Range in which the variable startPc, final int ... is valid length, final int Index in constant pool of variable name nameIndex, final int Index of variable's signature signatureIndex, final int Variable is 'index'th local variable on the method's frame index, final ConstantPool Array of constants constantPool)
|
| public | LocalVariable(final int
Range in which the variable startPc, final int ... is valid length, final int Index in constant pool of variable name nameIndex, final int Index of variable's signature signatureIndex, final int Variable is 'index'th local variable on the method's frame index, final ConstantPool Array of constants constantPool, final int Variable is 'index'th local variable on the method's frame prior to any changes origIndex)
|
| public | LocalVariable(final LocalVariable
Another LocalVariable. localVariable)Initializes from another LocalVariable. |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(final Visitor
Visitor object v)Implements com. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. |
| public LocalVariable | |
| public void | dump(final DataOutputStream
Output file stream dataOutputStream)Dumps local variable to file stream in binary format. |
| public ConstantPool | |
| public int | |
| public int | |
| public String | |
| public int | |
| public int | |
| public String | |
| public int | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setSignatureIndex(final int
the index into the constant pool for the signature of this variable signatureIndex)
|
| public void | |
| public String | Returns: string representation.Overrides java. Returns a string representation of the object. |
| pack-priv String |
| constantPool | back to summary |
|---|---|
| private ConstantPool constantPool | |
| EMPTY_ARRAY | back to summary |
|---|---|
| pack-priv static final LocalVariable[] EMPTY_ARRAY | |
| index | back to summary |
|---|---|
| private int index | |
| length | back to summary |
|---|---|
| private int length | |
| nameIndex | back to summary |
|---|---|
| private int nameIndex Index in constant pool of variable name. | |
| origIndex | back to summary |
|---|---|
| private final int origIndex Never changes; used to match up with LocalVariableTypeTable entries. | |
| signatureIndex | back to summary |
|---|---|
| private int signatureIndex Technically, a decscriptor_index for a local variable table entry and a signatureIndex for a local variable type table entry. Index of variable signature | |
| startPc | back to summary |
|---|---|
| private int startPc Range in which the variable is valid. | |
| LocalVariable | back to summary |
|---|---|
| pack-priv LocalVariable(final DataInput file, final ConstantPool constantPool) throws IOException Constructs object from file stream.
| |
| LocalVariable | back to summary |
|---|---|
public LocalVariable(final int startPc, final int length, final int nameIndex, final int signatureIndex, final int index, final ConstantPool constantPool)
| |
| LocalVariable | back to summary |
|---|---|
public LocalVariable(final int startPc, final int length, final int nameIndex, final int signatureIndex, final int index, final ConstantPool constantPool, final int origIndex)
| |
| LocalVariable | back to summary |
|---|---|
| public LocalVariable(final LocalVariable localVariable) Initializes from another LocalVariable. 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 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 LocalVariable copy()
| |
| dump | back to summary |
|---|---|
| public void dump(final DataOutputStream dataOutputStream) throws IOException Dumps local variable to file stream in binary format.
| |
| getConstantPool | back to summary |
|---|---|
public ConstantPool getConstantPool()
| |
| getIndex | back to summary |
|---|---|
public int getIndex()
| |
| getLength | back to summary |
|---|---|
public int getLength()
| |
| getName | back to summary |
|---|---|
public String getName()
| |
| getNameIndex | back to summary |
|---|---|
public int getNameIndex()
| |
| getOrigIndex | back to summary |
|---|---|
public int getOrigIndex()
| |
| getSignature | back to summary |
|---|---|
public String getSignature()
| |
| getSignatureIndex | back to summary |
|---|---|
public int getSignatureIndex()
| |
| getStartPC | back to summary |
|---|---|
public int getStartPC()
| |
| setConstantPool | back to summary |
|---|---|
public void setConstantPool(final ConstantPool constantPool)
| |
| setIndex | back to summary |
|---|---|
public void setIndex(final int index)
| |
| setLength | back to summary |
|---|---|
public void setLength(final int length)
| |
| setNameIndex | back to summary |
|---|---|
public void setNameIndex(final int nameIndex)
| |
| setSignatureIndex | back to summary |
|---|---|
public void setSignatureIndex(final int signatureIndex)
| |
| setStartPC | back to summary |
|---|---|
public void setStartPC(final int startPc)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toStringShared | back to summary |
|---|---|
| pack-priv String toStringShared(final boolean typeTable) | |