|
|||||||||
| Home >> All >> jreversepro >> [ reflect overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
jreversepro.reflect
Class JConstantPoolEntry

java.lang.Objectjreversepro.reflect.JConstantPoolEntry
- public class JConstantPoolEntry
- extends java.lang.Object
JConstantPoolEntry is an Entry of the CONSTANT POOL data structure the class file.
| Field Summary | |
(package private) int |
ptr1
ptr1 is the first pointer from this ConstantPoolEntry. |
(package private) int |
ptr2
ptr2 is the second pointer from this ConstantPoolEntry. |
(package private) int |
tagByte
Tag Byte tells us about what tag it is. |
(package private) java.lang.String |
value
This is applicable to TAG_UTF8 TAG_INTEGER TAG_FLOAT TAG_DOUBLE TAG_LONG that contains the actual value of the tag. |
| Constructor Summary | |
JConstantPoolEntry(int tagByte,
java.lang.String value,
int ptr1,
int ptr2)
Constructor |
|
| Method Summary | |
int |
getPtr1()
|
int |
getPtr2()
|
int |
getTagByte()
|
java.lang.String |
getValue()
|
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
ptr1
int ptr1
- ptr1 is the first pointer from this ConstantPoolEntry.
An example could be TAG_CLASS. TagClass would have an entry
pointing to a TAG_UTF8 that contains the class name.
In that case the ptr1 of TAG_CLASS entry would give
lead to TAG_UTF8.
ptr2
int ptr2
- ptr2 is the second pointer from this ConstantPoolEntry.
An example could be TAG_FIELDTYPE. TagFieldType will have
two entries - the first one to TAG_CLASS and the second one
to TAG_NAMETYPE.In this case ptr2 would have the number of
TAG_NAMETYPE index.
value
java.lang.String value
- This is applicable to TAG_UTF8 TAG_INTEGER
TAG_FLOAT TAG_DOUBLE TAG_LONG that contains the
actual value of the tag.
tagByte
int tagByte
- Tag Byte tells us about what tag it is.
It can be one of the following.
TAG_UTF8 corresponds to CONSTANT_UTF8
TAG_INTEGER corresponds to CONSTANT_INTEGER
TAG_FLOAT corresponds to CONSTANT_FLOAT
TAG_LONG corresponds to CONSTANT_LONG
TAG_DOUBLE corresponds to CONSTANT_DOUBLE
TAG_CLASS corresponds to CONSTANT_CLASS
TAG_STRING corresponds to CONSTANT_STRING
TAG_FIELDREF corresponds to CONSTANT_FIELDREF
TAG_METHODREF corresponds to CONSTANT_METHODREF
TAG_INTERFACEREF corresponds to CONSTANT_INTERFACEREF
TAG_NAMETYPE corresponds to CONSTANT_NAMETYPE
| Constructor Detail |
JConstantPoolEntry
public JConstantPoolEntry(int tagByte,
java.lang.String value,
int ptr1,
int ptr2)
- Constructor
| Method Detail |
getPtr1
public int getPtr1()
getPtr2
public int getPtr2()
getValue
public java.lang.String getValue()
getTagByte
public int getTagByte()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> jreversepro >> [ reflect overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
jreversepro.reflect.JConstantPoolEntry