|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.classFile.ConstantPoolInfo
This class defines an entry in the constant pool for a Java class. The class file is primarily composed of ConstantPool entries and manipulation is done by modifying those entries.
ClassFile
Field Summary | |
static int |
ASCIZ
|
static int |
CLASS
|
static int |
DOUBLE
|
static int |
FIELDREF
|
static int |
FLOAT
|
static int |
INTEGER
|
static int |
INTERFACE
|
static int |
LONG
|
static int |
METHODREF
|
static int |
NAMEANDTYPE
|
static int |
STRING
|
static int |
UNICODE
|
Constructor Summary | |
ConstantPoolInfo()
|
|
ConstantPoolInfo(double value)
|
|
ConstantPoolInfo(float value)
|
|
ConstantPoolInfo(int value)
|
|
ConstantPoolInfo(long value)
Construct a new ConstantPoolInfo object that is of type LONG |
|
ConstantPoolInfo(java.lang.String value)
|
Method Summary | |
static ConstantPoolInfo |
create(int type)
Factory approach to creating instances. |
static short |
indexOf(ConstantPoolInfo item,
ConstantPoolInfo[] pool)
|
ConstantPoolInfo |
inPool(ConstantPoolInfo[] pool)
Returns the reference to the constant pool item that is already in pool, that matches this one. |
boolean |
isEqual(ConstantPoolInfo cp)
Returns true if these constant pool items are identical. |
int |
isType()
|
boolean |
read(java.io.DataInputStream dis,
int type)
|
java.lang.String |
toString()
|
void |
write(java.io.DataOutputStream dos,
ConstantPoolInfo[] pool)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CLASS
public static final int FIELDREF
public static final int METHODREF
public static final int STRING
public static final int INTEGER
public static final int FLOAT
public static final int LONG
public static final int DOUBLE
public static final int INTERFACE
public static final int NAMEANDTYPE
public static final int ASCIZ
public static final int UNICODE
Constructor Detail |
public ConstantPoolInfo()
public ConstantPoolInfo(double value)
public ConstantPoolInfo(float value)
public ConstantPoolInfo(int value)
public ConstantPoolInfo(long value)
public ConstantPoolInfo(java.lang.String value)
Method Detail |
public static short indexOf(ConstantPoolInfo item, ConstantPoolInfo[] pool) throws java.lang.Exception
java.lang.Exception
public ConstantPoolInfo inPool(ConstantPoolInfo[] pool)
public boolean isEqual(ConstantPoolInfo cp)
public int isType()
public static ConstantPoolInfo create(int type)
public boolean read(java.io.DataInputStream dis, int type) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public void write(java.io.DataOutputStream dos, ConstantPoolInfo[] pool) throws java.io.IOException, java.lang.Exception
java.io.IOException
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |