LocalVariableTable_attribute.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | tag
The name of this attribute |
| public static final String | typeTag
The name of the attribute |
| Access | Constructor and Description |
|---|---|
| public | |
| public | LocalVariableAttribute(ConstPool cp, String
the attribute name.
name)LocalVariableAttribute.tag or
LocalVariableAttribute.typeTag.
Deprecated
Constructs an empty LocalVariableTable. |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addEntry(int
start_pclengthname_indexdescriptor_indexindexAppends a new entry to |
| public int | |
| public AttributeInfo | |
| public String | descriptor(int
the i-th entry. i)Returns the type descriptor of the local variable
specified by |
| public int | |
| public int | |
| pack-priv LocalVariableAttribute | |
| public int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv String | |
| pack-priv String | |
| public void | shiftIndex(int
the index does not change if it
is less than this value. lessThan, int delta)For each |
| pack-priv void | shiftPc(int where, int gapLength, boolean exclusive)
Adjusts start_pc and length if bytecode is inserted in a method body. |
| public String | |
| public int | |
| public int | |
| public int | |
| public String | variableName(int
the i-th entry. i)Returns the name of the local variable
specified by |
| public String | variableNameByIndex(int
the index of the local variable. index)Returns the name of the local variable with given index. |
| tag | back to summary |
|---|---|
| public static final String tag The name of this attribute | |
| typeTag | back to summary |
|---|---|
| public static final String typeTag The name of the attribute | |
| LocalVariableAttribute | back to summary |
|---|---|
| public LocalVariableAttribute(ConstPool cp) Constructs an empty LocalVariableTable. | |
| LocalVariableAttribute | back to summary |
|---|---|
| public LocalVariableAttribute(ConstPool cp, String name)
Deprecated
Constructs an empty LocalVariableTable. | |
| LocalVariableAttribute | back to summary |
|---|---|
| pack-priv LocalVariableAttribute(ConstPool cp, int n, DataInputStream in) throws IOException | |
| LocalVariableAttribute | back to summary |
|---|---|
| pack-priv LocalVariableAttribute(ConstPool cp, String name, byte[] i) | |
| addEntry | back to summary |
|---|---|
| public void addEntry(int startPc, int length, int nameIndex, int descriptorIndex, int index) Appends a new entry to
| |
| codeLength | back to summary |
|---|---|
| public int codeLength(int i) Returns
| |
| copy | back to summary |
|---|---|
| public AttributeInfo copy(ConstPool newCp, Map<String, String> classnames) Overrides javassist. Makes a copy. | |
| descriptor | back to summary |
|---|---|
| public String descriptor(int i) Returns the type descriptor of the local variable
specified by
If this attribute represents a LocalVariableTypeTable attribute,
this method returns the type signature of the local variable
specified by
| |
| descriptorIndex | back to summary |
|---|---|
| public int descriptorIndex(int i) Returns the value of
If this attribute represents a LocalVariableTypeTable attribute,
this method returns the value of
| |
| index | back to summary |
|---|---|
| public int index(int i) Returns
| |
| makeThisAttr | back to summary |
|---|---|
| pack-priv LocalVariableAttribute makeThisAttr(ConstPool cp, byte[] dest) | |
| nameIndex | back to summary |
|---|---|
| public int nameIndex(int i) Returns the value of
| |
| renameClass | back to summary |
|---|---|
| pack-priv void renameClass(String oldname, String newname) Overrides javassist.
| |
| renameClass | back to summary |
|---|---|
| pack-priv void renameClass(Map<String, String> classnames) Overrides javassist.
| |
| renameEntry | back to summary |
|---|---|
| pack-priv String renameEntry(String desc, String oldname, String newname) | |
| renameEntry | back to summary |
|---|---|
| pack-priv String renameEntry(String desc, Map<String, String> classnames) | |
| shiftIndex | back to summary |
|---|---|
| public void shiftIndex(int lessThan, int delta) For each
| |
| shiftPc | back to summary |
|---|---|
| pack-priv void shiftPc(int where, int gapLength, boolean exclusive) Adjusts start_pc and length if bytecode is inserted in a method body. | |
| signature | back to summary |
|---|---|
| public String signature(int i) This method is equivalent to To parse the string, call
| |
| signatureIndex | back to summary |
|---|---|
| public int signatureIndex(int i) This method is equivalent to
| |
| startPc | back to summary |
|---|---|
| public int startPc(int i) Returns
| |
| tableLength | back to summary |
|---|---|
| public int tableLength() Returns | |
| variableName | back to summary |
|---|---|
| public String variableName(int i) Returns the name of the local variable
specified by
| |
| variableNameByIndex | back to summary |
|---|---|
| public String variableNameByIndex(int index) Returns the name of the local variable with given index. If you want to get the parameter name of method with correct order, you should using this method.
| |