|
|||||||||||
| 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_Classref
This is the utf8 class 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_Classref(ConstantPool p)
Constructor |
|
CONSTANT_Classref(ConstantPool p,
long nameIndex)
Constructor |
|
| Method Summary | |
String |
getClassName()
This will return the fully qualified class name that contains both the name of the class and the package for the class. |
byte |
getCode()
This is the code for this constant |
String |
getPackageName()
This will return the name of this classes package. |
String |
getShortClassName()
This will return the name of this class without the package. |
long |
getUTF8Index()
This will get the utf8 index that is this classes name |
boolean |
isSamePackage(CONSTANT_Classref compare)
This will tell if two Classref objects are from the same package |
boolean |
isSamePackage(String className)
This will tell if two Classref objects are from the same package |
void |
load(DataInputStream in)
This will read in whatever data is neccessary to create this entry |
void |
setUTF8Index(long index)
This will set the utf8 index that is this classes name |
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_Classref(ConstantPool p)
public CONSTANT_Classref(ConstantPool p,
long nameIndex)
| Method Detail |
public byte getCode()
getCode in class ConstantPoolEntrypublic long getUTF8Index()
public void setUTF8Index(long index)
index - an index in the constant pool that will refer to this
classes namepublic void load(DataInputStream in)
load in class ConstantPoolEntryin - the stream to read the data frompublic String toString()
toString in class Objectpublic boolean isSamePackage(String className)
public boolean isSamePackage(CONSTANT_Classref compare)
compare - the object to compare packages with
public byte[] toBytes()
throws IOException
toBytes in class ConstantPoolEntryIOExceptionpublic String getClassName()
public String getShortClassName()
public String getPackageName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||