|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--javar.constantpool.ConstantPoolEntry
This is an abstract class that will represent an entry in the constant pool
| Field Summary | |
static byte |
CLASS_CODE
|
static byte |
DOUBLE_CODE
|
static byte |
FIELD_REF_CODE
|
static byte |
FLOAT_CODE
|
protected long |
index
|
static byte |
INTEGER_CODE
|
static byte |
INTERFACE_METHOD_REF_CODE
|
static byte |
LONG_CODE
|
static byte |
METHOD_REF_CODE
|
static byte |
NAME_AND_TYPE_CODE
|
protected ConstantPool |
pool
|
static byte |
STRING_CODE
|
static byte |
UTF8_CODE
|
| Constructor Summary | |
ConstantPoolEntry(ConstantPool p)
Constructor |
|
| Method Summary | |
abstract byte |
getCode()
This will return the code of this entry |
long |
getIndex()
This will tell the index of this entry |
abstract void |
load(DataInputStream in)
This will read in whatever data is neccessary to create this entry |
void |
setIndex(int i)
This will set the index for this entry |
abstract byte[] |
toBytes()
This will take the entry and convert it into bytes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte UTF8_CODE
public static final byte INTEGER_CODE
public static final byte FLOAT_CODE
public static final byte LONG_CODE
public static final byte DOUBLE_CODE
public static final byte CLASS_CODE
public static final byte STRING_CODE
public static final byte FIELD_REF_CODE
public static final byte METHOD_REF_CODE
public static final byte INTERFACE_METHOD_REF_CODE
public static final byte NAME_AND_TYPE_CODE
protected ConstantPool pool
protected long index
| Constructor Detail |
public ConstantPoolEntry(ConstantPool p)
| Method Detail |
public abstract byte getCode()
public abstract void load(DataInputStream in)
in - the stream to read the data frompublic long getIndex()
public abstract byte[] toBytes()
throws IOException
IOExceptionpublic void setIndex(int i)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||