|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.IR.RawClass.LocalVariableTable
public class LocalVariableTable
Each object indicates a range of code array offsets
within which a local variable has a value.
AttributeLocalVariableTable| Field Summary | |
|---|---|
int |
descriptor_index
The value of the descriptor_index item must be a
valid index into the constant_pool table. |
int |
index
The given local variable must be at index in its
method's local variables. |
int |
length
The given local variable must have a value at indices into the code array in the closed interval
[start_pc, start_pc + length]. |
int |
name_index
The value of the name_index item must be a valid
index into the constant_pool table. |
protected ClassFile |
parent
ClassFile in which this attribute information is found. |
int |
start_pc
The given local variable must have a value at indices into the code array in the closed interval
[start_pc, start_pc + length]. |
| Constructor Summary | |
|---|---|
LocalVariableTable(ClassFile parent,
int start_pc,
int length,
int name_index,
int descriptor_index,
int index)
Constructor. |
|
| Method Summary | |
|---|---|
ConstantUtf8 |
descriptor_index()
|
String |
descriptor()
|
int |
end_pc()
|
ConstantUtf8 |
name_index()
|
String |
name()
|
void |
print(PrintWriter pw,
int indent)
Pretty-print the contents of this attribute. |
void |
write(ClassDataOutputStream out)
Writes to bytecode stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ClassFile parent
public int start_pc
code array in the closed interval
[start_pc, start_pc + length].
The value of start_pc must be a valid index
into the code array of this Code
attribute of the opcode of an instruction.
public int length
code array in the closed interval
[start_pc, start_pc + length].
The value of start_pc+length must be either a
valid index into the code array of this
Code attribute of the opcode of an instruction,
or the first index beyond the end of that code
array.
public int name_index
name_index item must be a valid
index into the constant_pool table. The
constant_pool entry at that index must contain a
CONSTANT_Utf8_info structure representing a valid
Java local variable name stored as a simple name.
public int descriptor_index
descriptor_index item must be a
valid index into the constant_pool table. The
constant_pool entry at that index must contain a
CONSTANT_Utf8_info structure representing a valid
descriptor for a Java local variable. Java local variable
descriptors have the same form as field descriptors.
public int index
index in its
method's local variables. If the local variable at
index is a two-word type (double or
long), it occupies both index and
index+1.
| Constructor Detail |
|---|
public LocalVariableTable(ClassFile parent,
int start_pc,
int length,
int name_index,
int descriptor_index,
int index)
| Method Detail |
|---|
public void write(ClassDataOutputStream out)
throws IOException
IOExceptionpublic ConstantUtf8 name_index()
public ConstantUtf8 descriptor_index()
public String name()
public String descriptor()
public int end_pc()
public void print(PrintWriter pw,
int indent)
indent - the indentation level to use.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||