|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.shrikeBT.ConstantPoolReader
public abstract class ConstantPoolReader
This class provides read-only access to a constant pool. It gets subclassed for each class reader/editor toolkit you want to work with.
| Constructor Summary | |
|---|---|
ConstantPoolReader()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
getConstantPoolClassType(int index)
Retrieve the value of a CONSTANT_Class constant pool item in JVM internal class format (e.g., java/lang/Object). |
abstract double |
getConstantPoolDouble(int index)
Retrieve the value of a CONSTANT_Double constant pool item. |
abstract float |
getConstantPoolFloat(int index)
Retrieve the value of a CONSTANT_Float constant pool item. |
abstract int |
getConstantPoolInteger(int index)
Retrieve the value of a CONSTANT_Integer constant pool item. |
abstract int |
getConstantPoolItemType(int index)
Retrieve the JVM constant pool item type (a Constants.CONSTANT_xxx value). |
abstract long |
getConstantPoolLong(int index)
Retrieve the value of a CONSTANT_Long constant pool item. |
abstract java.lang.String |
getConstantPoolMemberClassType(int index)
Retrieve the class part of a CONSTANT_FieldRef, CONSTANT_MethodRef, or CONSTANT_InterfaceMethodRef constant pool item, in JVM internal class format (e.g., java/lang/Object). |
abstract java.lang.String |
getConstantPoolMemberName(int index)
Retrieve the name part of a CONSTANT_FieldRef, CONSTANT_MethodRef, or CONSTANT_InterfaceMethodRef constant pool item, This method should be overriden by a toolkit-specific subclass. |
abstract java.lang.String |
getConstantPoolMemberType(int index)
Retrieve the type part of a CONSTANT_FieldRef, CONSTANT_MethodRef, or CONSTANT_InterfaceMethodRef constant pool item, in JVM internal type format (e.g., Ljava/lang/Object;). |
abstract java.lang.String |
getConstantPoolString(int index)
Retrieve the value of a CONSTANT_String constant pool item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantPoolReader()
| Method Detail |
|---|
public abstract int getConstantPoolItemType(int index)
index - the constant pool item to examinepublic abstract int getConstantPoolInteger(int index)
index - the constant pool item to examinepublic abstract float getConstantPoolFloat(int index)
index - the constant pool item to examinepublic abstract long getConstantPoolLong(int index)
index - the constant pool item to examinepublic abstract double getConstantPoolDouble(int index)
index - the constant pool item to examinepublic abstract java.lang.String getConstantPoolString(int index)
index - the constant pool item to examinepublic abstract java.lang.String getConstantPoolClassType(int index)
index - the constant pool item to examinepublic abstract java.lang.String getConstantPoolMemberClassType(int index)
index - the constant pool item to examinepublic abstract java.lang.String getConstantPoolMemberName(int index)
index - the constant pool item to examinepublic abstract java.lang.String getConstantPoolMemberType(int index)
index - the constant pool item to examine
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||