| Modifier and Type | Field and Description |
|---|---|
| private final Hashtable | names
The names database. |
| private final Hashtable | types
The types database. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public String | Returns: the name of the local variable that uses this local variable slot at the given bytecode offset.bytecode offset. offset)Returns the name of the local variable that uses this local variable slot at the given bytecode offset. |
| public Type | Returns: the type of the local variable that uses this local variable slot at the given bytecode offset.bytecode offset. offset)Returns the type of the local variable that uses this local variable slot at the given bytecode offset. |
| private void | |
| private void |
| names | back to summary |
|---|---|
| private final Hashtable<String, String> names The names database. KEY: String representing the offset integer. | |
| types | back to summary |
|---|---|
| private final Hashtable<String, Type> types The types database. KEY: String representing the offset integer. | |
| LocalVariableInfo | back to summary |
|---|---|
| public LocalVariableInfo() | |
| add | back to summary |
|---|---|
| private void add(final int offset, final String name, final Type t) throws LocalVariableInfoInconsistentException Adds information about name and type for a given offset.
| |
| add | back to summary |
|---|---|
| public void add(final String name, final int startPc, final int length, final Type type) throws LocalVariableInfoInconsistentException Adds some information about this local variable (slot).
| |
| getName | back to summary |
|---|---|
| public String getName(final int offset) Returns the name of the local variable that uses this local variable slot at the given bytecode offset. Care for legal bytecode offsets yourself, otherwise the return value might be wrong. May return 'null' if nothing is known about the type of this local variable slot at the given bytecode offset.
| |
| getType | back to summary |
|---|---|
| public Type getType(final int offset) Returns the type of the local variable that uses this local variable slot at the given bytecode offset. Care for legal bytecode offsets yourself, otherwise the return value might be wrong. May return 'null' if nothing is known about the type of this local variable slot at the given bytecode offset.
| |
| setName | back to summary |
|---|---|
| private void setName(final int offset, final String name) Adds a name of a local variable and a certain slot to our 'names' (Hashtable) database. | |
| setType | back to summary |
|---|---|
| private void setType(final int offset, final Type t) Adds a type of a local variable and a certain slot to our 'types' (Hashtable) database. | |