|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javar.constantpool.ConstantPoolEntry
|
+--javar.constantpool.CONSTANT_NameAndType
This is the Name and Type ass that represents an entry in the constant pool
| Field Summary |
| Fields inherited from class javar.constantpool.ConstantPoolEntry |
CLASS_CODE, DOUBLE_CODE, FIELD_REF_CODE, FLOAT_CODE, index, INTEGER_CODE, INTERFACE_METHOD_REF_CODE, LONG_CODE, METHOD_REF_CODE, NAME_AND_TYPE_CODE, pool, STRING_CODE, UTF8_CODE |
| Constructor Summary | |
CONSTANT_NameAndType(ConstantPool p)
Constructor |
|
| Method Summary | |
byte |
getCode()
This is the code for this constant |
long |
getName()
This will get the name of this name and type |
String |
getNameAsString()
This will get the name of this name and type |
long |
getType()
This will get the type of this name and type |
String |
getTypeAsString()
This will get the type of this name and type |
void |
load(DataInputStream in)
This will read in whatever data is neccessary to create this entry |
void |
setName(long name)
This will set the name of this. |
void |
setType(long type)
This will set the type of this |
byte[] |
toBytes()
This will take the entry and convert it into bytes. |
String |
toString()
This will print a string rep of the class |
| Methods inherited from class javar.constantpool.ConstantPoolEntry |
getIndex, setIndex |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CONSTANT_NameAndType(ConstantPool p)
| Method Detail |
public void setName(long name)
name - public long getName()
public String getNameAsString()
public String getTypeAsString()
public void setType(long type)
type - public long getType()
public byte getCode()
getCode in class ConstantPoolEntrypublic void load(DataInputStream in)
load in class ConstantPoolEntryin - the stream to read the data frompublic String toString()
toString in class Object
public byte[] toBytes()
throws IOException
toBytes in class ConstantPoolEntryIOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||