Public Methods | |
abstract int | compareTo (cp_info constant_pool[], cp_info cp, cp_info cp_constant_pool[]) |
abstract int | size () |
abstract String | toString (cp_info constant_pool[]) |
abstract String | typeName () |
Static Public Methods | |
int | countParams (cp_info constant_pool[], int m) |
String | fieldType (cp_info constant_pool[], int i) |
String | getClassname (cp_info constant_pool[], int i) |
String | getName (cp_info constant_pool[], int i) |
String | getTypeDescr (cp_info constant_pool[], int i) |
long | ints2long (long high, long low) |
String | printBits (int i) |
String | printBits (long i) |
Public Attributes | |
byte | tag |
Static Public Attributes | |
final byte | CONSTANT_Utf8 = 1 |
final byte | CONSTANT_Integer = 3 |
final byte | CONSTANT_Float = 4 |
final byte | CONSTANT_Long = 5 |
final byte | CONSTANT_Double = 6 |
final byte | CONSTANT_Class = 7 |
final byte | CONSTANT_String = 8 |
final byte | CONSTANT_Fieldref = 9 |
final byte | CONSTANT_Methodref = 10 |
final byte | CONSTANT_InterfaceMethodref = 11 |
final byte | CONSTANT_NameAndType = 12 |
Definition at line 120 of file cp_info.java.
|
Compares this entry with another cp_info object (which may reside in a different constant pool).
Reimplemented in CONSTANT_Class_info, CONSTANT_Double_info, CONSTANT_Fieldref_info, CONSTANT_Float_info, CONSTANT_Integer_info, CONSTANT_InterfaceMethodref_info, CONSTANT_Long_info, CONSTANT_Methodref_info, CONSTANT_NameAndType_info, CONSTANT_String_info, and CONSTANT_Utf8_info. Referenced by CONSTANT_Utf8_info::compareTo(), CONSTANT_String_info::compareTo(), CONSTANT_NameAndType_info::compareTo(), CONSTANT_Methodref_info::compareTo(), CONSTANT_InterfaceMethodref_info::compareTo(), CONSTANT_Fieldref_info::compareTo(), and CONSTANT_Class_info::compareTo().
|
|
Counts the number of parameters of the given method.
Definition at line 154 of file cp_info.java. |
|
Returns the name of the field type of the given constant pool object.
Definition at line 172 of file cp_info.java. |
|
Locates the name of the corresponding class, given the constant pool index of either a CONSTANT_Class, _Fieldref, Methodref or InterfaceMethodref.
Definition at line 186 of file cp_info.java. |
|
Returns the name of the given constant pool object, assuming it is of type CONSTANT_NameAndType, _FieldRef, _Methodref or _InterfaceMethodref.
Definition at line 213 of file cp_info.java. |
|
Returns the type descriptor for the given constant pool object, which must be a CONSTANT_Utf8, CONSTANT_NameAndType, CONSTANT_Fieldref, CONSTANT_MethodRef, or CONSTANT_InterfaceMethodRef.
Definition at line 244 of file cp_info.java. Referenced by countParams(), and fieldType().
|
|
Utility method, converts two integers into a single long.
Definition at line 268 of file cp_info.java. Referenced by CONSTANT_Long_info::convert(), and CONSTANT_Double_info::convert().
|
|
Utility method, returns a String binary representation of the given long.
Definition at line 298 of file cp_info.java. |
|
Utility method, returns a String binary representation of the given integer.
Definition at line 279 of file cp_info.java. |
|
Returns the size of this entry.
Reimplemented in CONSTANT_Class_info, CONSTANT_Double_info, CONSTANT_Fieldref_info, CONSTANT_Float_info, CONSTANT_Integer_info, CONSTANT_InterfaceMethodref_info, CONSTANT_Long_info, CONSTANT_Methodref_info, CONSTANT_NameAndType_info, CONSTANT_String_info, and CONSTANT_Utf8_info. |
|
Returns a String representation of this entry.
Reimplemented in CONSTANT_Class_info, CONSTANT_Double_info, CONSTANT_Fieldref_info, CONSTANT_Float_info, CONSTANT_Integer_info, CONSTANT_InterfaceMethodref_info, CONSTANT_Long_info, CONSTANT_Methodref_info, CONSTANT_NameAndType_info, CONSTANT_String_info, and CONSTANT_Utf8_info. Referenced by getClassname(), getName(), getTypeDescr(), ClassFile::listConstantPool(), ClassFile::readConstantPool(), Instruction_intindex::toString(), Instruction_byteindex::toString(), and ClassFile::toString().
|
|
Returns a String description of what kind of entry this is.
Reimplemented in CONSTANT_Class_info, CONSTANT_Double_info, CONSTANT_Fieldref_info, CONSTANT_Float_info, CONSTANT_Integer_info, CONSTANT_InterfaceMethodref_info, CONSTANT_Long_info, CONSTANT_Methodref_info, CONSTANT_NameAndType_info, CONSTANT_String_info, and CONSTANT_Utf8_info. Referenced by ClassFile::listConstantPool().
|
|
One of the CONSTANT_* constants. Definition at line 135 of file cp_info.java. |