|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.rej.java.constantpool.ConstantPoolInfo
public abstract class ConstantPoolInfo
ConstantPoolInfo
is the superclass for all constant pool items.
Field Summary | |
---|---|
static int |
CLASS
|
static int |
DOUBLE
|
static int |
FIELD_REF
|
static int |
FLOAT
|
static int |
INTEGER
|
static int |
INTERFACE_METHOD_REF
|
static int |
LONG
|
static int |
METHOD_REF
|
static int |
NAME_AND_TYPE
|
static int |
STRING
|
static int |
UTF8
|
Method Summary | |
---|---|
static ConstantPoolInfo |
getCPI(ByteParser parser,
ConstantPool pool)
Parse a constant pool info item from a byte parser. |
abstract byte[] |
getData()
Return the data of this entry in the form that it can be written to a class file. |
int |
getType()
Return the type of this ConstantPoolInfo instance. |
abstract java.lang.String |
getTypeString()
Return a String describing the type of this instance. |
java.lang.String |
getValue()
Return a String representation of the value of this constant pool entry. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CLASS
public static final int FIELD_REF
public static final int METHOD_REF
public static final int INTERFACE_METHOD_REF
public static final int STRING
public static final int INTEGER
public static final int FLOAT
public static final int LONG
public static final int DOUBLE
public static final int NAME_AND_TYPE
public static final int UTF8
Method Detail |
---|
public static ConstantPoolInfo getCPI(ByteParser parser, ConstantPool pool)
parser
- ByteParser providing the data.pool
- ConstantPool to be passed on the the ConstantPoolInfo object.
public int getType()
public java.lang.String getValue()
public abstract byte[] getData()
public abstract java.lang.String getTypeString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |