|
|||||||||
| Home >> All >> org >> apache >> bcel >> verifier >> [ statics overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.bcel.verifier.statics
Class LocalVariableInfo

java.lang.Objectorg.apache.bcel.verifier.statics.LocalVariableInfo
- public class LocalVariableInfo
- extends java.lang.Object
A utility class holding the information about the name and the type of a local variable in a given slot (== index). This information often changes in course of byte code offsets.
- Version:
- $Id: LocalVariableInfo.java 371539 2006-01-23 14:08:00Z tcurdt $
| Field Summary | |
private java.util.Hashtable |
names
The names database. |
private java.util.Hashtable |
types
The types database. |
| Constructor Summary | |
LocalVariableInfo()
|
|
| Method Summary | |
private void |
add(int offset,
java.lang.String name,
org.apache.bcel.generic.Type t)
Adds information about name and type for a given offset. |
void |
add(java.lang.String name,
int startpc,
int length,
org.apache.bcel.generic.Type t)
Adds some information about this local variable (slot). |
java.lang.String |
getName(int offset)
Returns the name of the local variable that uses this local variable slot at the given bytecode offset. |
org.apache.bcel.generic.Type |
getType(int offset)
Returns the type of the local variable that uses this local variable slot at the given bytecode offset. |
private void |
setName(int offset,
java.lang.String name)
Adds a name of a local variable and a certain slot to our 'names' (Hashtable) database. |
private void |
setType(int offset,
org.apache.bcel.generic.Type t)
Adds a type of a local variable and a certain slot to our 'types' (Hashtable) database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
types
private java.util.Hashtable types
- The types database. KEY: String representing the offset integer.
names
private java.util.Hashtable names
- The names database. KEY: String representing the offset integer.
| Constructor Detail |
LocalVariableInfo
public LocalVariableInfo()
| Method Detail |
setName
private void setName(int offset,
java.lang.String name)
- Adds a name of a local variable and a certain slot to our 'names'
(Hashtable) database.
setType
private void setType(int offset,
org.apache.bcel.generic.Type t)
- Adds a type of a local variable and a certain slot to our 'types'
(Hashtable) database.
getType
public org.apache.bcel.generic.Type getType(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.
getName
public java.lang.String getName(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.
add
public void add(java.lang.String name, int startpc, int length, org.apache.bcel.generic.Type t) throws org.apache.bcel.verifier.exc.LocalVariableInfoInconsistentException
- Adds some information about this local variable (slot).
add
private void add(int offset,
java.lang.String name,
org.apache.bcel.generic.Type t)
throws org.apache.bcel.verifier.exc.LocalVariableInfoInconsistentException
- Adds information about name and type for a given offset.
|
|||||||||
| Home >> All >> org >> apache >> bcel >> verifier >> [ statics overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.bcel.verifier.statics.LocalVariableInfo