|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gjt.jclasslib.structures.AbstractStructure
org.gjt.jclasslib.structures.CPInfo
Base class for all constant pool entries in the constants package.
Field Summary | |
static byte |
CONSTANT_CLASS
|
static String |
CONSTANT_CLASS_VERBOSE
|
static byte |
CONSTANT_DOUBLE
|
static String |
CONSTANT_DOUBLE_VERBOSE
|
static byte |
CONSTANT_FIELDREF
|
static String |
CONSTANT_FIELDREF_VERBOSE
|
static byte |
CONSTANT_FLOAT
|
static String |
CONSTANT_FLOAT_VERBOSE
|
static byte |
CONSTANT_INTEGER
|
static String |
CONSTANT_INTEGER_VERBOSE
|
static byte |
CONSTANT_INTERFACE_METHODREF
|
static String |
CONSTANT_INTERFACE_METHODREF_VERBOSE
|
static byte |
CONSTANT_LONG
|
static String |
CONSTANT_LONG_VERBOSE
|
static byte |
CONSTANT_METHODREF
|
static String |
CONSTANT_METHODREF_VERBOSE
|
static byte |
CONSTANT_NAME_AND_TYPE
|
static String |
CONSTANT_NAME_AND_TYPE_VERBOSE
|
static byte |
CONSTANT_STRING
|
static String |
CONSTANT_STRING_VERBOSE
|
static byte |
CONSTANT_UTF8
|
static String |
CONSTANT_UTF8_VERBOSE
|
Fields inherited from class org.gjt.jclasslib.structures.AbstractStructure |
classFile, debug, SYSTEM_PROPERTY_DEBUG |
Constructor Summary | |
CPInfo()
|
Method Summary | |
static CPInfo |
create(DataInput in,
ClassFile classFile)
Factory method for creating CPInfo structures. |
boolean |
equals(Object object)
|
abstract byte |
getTag()
Get the value of the tag field of the cp_info structure. |
abstract String |
getTagVerbose()
Get the verbose description of the tag field of the cp_info structure. |
String |
getVerbose()
Get the verbose description of the content of the constant pool entry. |
int |
hashCode()
|
protected String |
printAccessFlagsVerbose(int accessFlags)
Utility method for derived structures. |
static int |
skip(DataInput in)
Skip a CPInfo structure in a DataInput. |
Methods inherited from class org.gjt.jclasslib.structures.AbstractStructure |
debug, getClassFile, getDebug, getLength, printAccessFlags, printAccessFlagsVerbose, printBytes, read, setClassFile, setDebug, write |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte CONSTANT_CLASS
public static final byte CONSTANT_FIELDREF
public static final byte CONSTANT_METHODREF
public static final byte CONSTANT_INTERFACE_METHODREF
public static final byte CONSTANT_STRING
public static final byte CONSTANT_INTEGER
public static final byte CONSTANT_FLOAT
public static final byte CONSTANT_LONG
public static final byte CONSTANT_DOUBLE
public static final byte CONSTANT_NAME_AND_TYPE
public static final byte CONSTANT_UTF8
public static final String CONSTANT_CLASS_VERBOSE
public static final String CONSTANT_FIELDREF_VERBOSE
public static final String CONSTANT_METHODREF_VERBOSE
public static final String CONSTANT_INTERFACE_METHODREF_VERBOSE
public static final String CONSTANT_STRING_VERBOSE
public static final String CONSTANT_INTEGER_VERBOSE
public static final String CONSTANT_FLOAT_VERBOSE
public static final String CONSTANT_LONG_VERBOSE
public static final String CONSTANT_DOUBLE_VERBOSE
public static final String CONSTANT_NAME_AND_TYPE_VERBOSE
public static final String CONSTANT_UTF8_VERBOSE
Constructor Detail |
public CPInfo()
Method Detail |
public static CPInfo create(DataInput in, ClassFile classFile) throws InvalidByteCodeException, IOException
A CPInfo of the appropriate subtype from the constants package is created.
in
- the DataInput from which to read the CPInfo structureclassFile
- the parent class file of the structure to be created
InvalidByteCodeException
- if the byte code is invalid
IOException
- if an exception occurs with the DataInputpublic abstract byte getTag()
public abstract String getTagVerbose()
public String getVerbose() throws InvalidByteCodeException
InvalidByteCodeException
- if the byte code is invalidpublic static int skip(DataInput in) throws InvalidByteCodeException, IOException
in
- the DataInput from which to read the CPInfo structure
InvalidByteCodeException
- if the byte code is invalid
IOException
- if an exception occurs with the DataInputpublic boolean equals(Object object)
public int hashCode()
protected String printAccessFlagsVerbose(int accessFlags)
AbstractStructure
printAccessFlagsVerbose
in class AbstractStructure
accessFlags
- the unsigned short value to print as a hex string
|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |