|
|||||||||||
| 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_Methodref
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_Methodref(ConstantPool p)
Constructor |
|
| Method Summary | |
int |
getArgumentCount()
This will get the number of arguments that this object is expecting |
CONSTANT_Classref |
getClassEntry()
This will get the index to the class that this method is suppose to be for. |
long |
getClassIndex()
This will get the index to the class that this method is suppose to be for. |
byte |
getCode()
This is the code for this constant |
long |
getNameAndType()
This will get the index to the name and type |
CONSTANT_NameAndType |
getNameAndTypeEntry()
This will get the name and type |
boolean |
isConstructor()
This is a convience method that determines if this method is a constructor or not. |
void |
load(DataInputStream in)
This will read in whatever data is neccessary to create this entry |
void |
setClassIndex(long index)
This will set the class of this. |
void |
setNameAndType(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_Methodref(ConstantPool p)
| Method Detail |
public void setClassIndex(long index)
index - The index of the classpublic long getClassIndex()
public CONSTANT_Classref getClassEntry()
public void setNameAndType(long type)
type - public long getNameAndType()
public CONSTANT_NameAndType getNameAndTypeEntry()
public byte getCode()
getCode in class ConstantPoolEntrypublic boolean isConstructor()
public int getArgumentCount()
throws JavarParseException
JavarParseException - If there is an error during parsing.public 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 | ||||||||||