|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.squawk.MethodMetadata
public final class MethodMetadata
A MethodMetadata instance represents all the information
about a method body that is not absolutely required for execution. This
includes the information found in the JVM LineNumberTable and
LocalVariableTable class file attributes.
| Constructor Summary | |
|---|---|
MethodMetadata(int methodID,
ScopedLocalVariable[] lvt,
int[] lnt)
Creates a new MethodMetadata instance. |
|
| Method Summary | |
|---|---|
int[] |
getLineNumberTable()
Gets the table mapping instruction addresses to the source line numbers that start at the addresses. |
ScopedLocalVariable[] |
getLocalVariableTable()
Gets a table describing the scope, name and type of each local variable in the method. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodMetadata(int methodID,
ScopedLocalVariable[] lvt,
int[] lnt)
MethodMetadata instance.
methodID - the Method the metadata is forlnt - the table mapping instruction addresses to the
source line numbers that start at the addresses.
The table is encoded as an int array where the high
16-bits of each element is an instruction address and
the low 16-bits is the corresponding source linelvt - the table describing the symbolic information for
the local variables in the method| Method Detail |
|---|
public int[] getLineNumberTable()
public ScopedLocalVariable[] getLocalVariableTable()
|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||