All Packages Class Hierarchy This Package Previous Next Index
Class futils.utils.ConstantPoolInfo
java.lang.Object
|
+----futils.utils.ConstantPoolInfo
- public class ConstantPoolInfo
- extends java.lang.Object
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.
- Version:
- 1.5, 16 Aug 1995
- Author:
- Chuck McManis
- See Also:
- ClassFile
-
ASCIZ
-
-
CLASS
-
-
DOUBLE
-
-
FIELDREF
-
-
FLOAT
-
-
INTEGER
-
-
INTERFACE
-
-
LONG
-
-
METHODREF
-
-
NAMEANDTYPE
-
-
STRING
-
-
UNICODE
-
-
ConstantPoolInfo()
-
Generic constructor
-
ConstantPoolInfo(double)
-
Construct a new ConstantPoolInfo object that is of type DOUBLE
-
ConstantPoolInfo(float)
-
Construct a new ConstantPoolInfo object that is of type FLOAT
-
ConstantPoolInfo(int)
-
Construct a new ConstantPoolInfo object that is of type INTEGER
-
ConstantPoolInfo(long)
-
Construct a new ConstantPoolInfo object that is of type LONG
-
ConstantPoolInfo(String)
-
Construct a new ConstantPoolInfo object that is of type ASCIZ
-
indexOf(ConstantPoolInfo, ConstantPoolInfo[])
-
-
inPool(ConstantPoolInfo[])
-
Returns the reference to the constant pool item that is
already in pool, that matches this one.
-
isEqual(ConstantPoolInfo)
-
Returns true if these constant pool items are identical.
-
isType()
-
return the type of this constant pool item.
-
read(DataInputStream)
-
-
toString()
-
-
write(DataOutputStream, ConstantPoolInfo[])
-
CLASS
public static final int CLASS
FIELDREF
public static final int FIELDREF
METHODREF
public static final int METHODREF
STRING
public static final int STRING
INTEGER
public static final int INTEGER
FLOAT
public static final int FLOAT
LONG
public static final int LONG
DOUBLE
public static final int DOUBLE
INTERFACE
public static final int INTERFACE
NAMEANDTYPE
public static final int NAMEANDTYPE
ASCIZ
public static final int ASCIZ
UNICODE
public static final int UNICODE
ConstantPoolInfo
public ConstantPoolInfo(java.lang.String value)
- Construct a new ConstantPoolInfo object that is of type ASCIZ
ConstantPoolInfo
public ConstantPoolInfo(int value)
- Construct a new ConstantPoolInfo object that is of type INTEGER
ConstantPoolInfo
public ConstantPoolInfo(float value)
- Construct a new ConstantPoolInfo object that is of type FLOAT
ConstantPoolInfo
public ConstantPoolInfo(long value)
- Construct a new ConstantPoolInfo object that is of type LONG
ConstantPoolInfo
public ConstantPoolInfo(double value)
- Construct a new ConstantPoolInfo object that is of type DOUBLE
ConstantPoolInfo
public ConstantPoolInfo()
- Generic constructor
isType
public int isType()
- return the type of this constant pool item.
read
public boolean read(java.io.DataInputStream dis) throws java.io.IOException
write
public void write(java.io.DataOutputStream dos,
futils.utils.ConstantPoolInfo pool[]) throws java.io.IOException, java.lang.Exception
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
indexOf
public static short indexOf(futils.utils.ConstantPoolInfo item,
futils.utils.ConstantPoolInfo pool[]) throws java.lang.Exception
isEqual
public boolean isEqual(futils.utils.ConstantPoolInfo cp)
- Returns true if these constant pool items are identical.
inPool
public futils.utils.ConstantPoolInfo inPool(futils.utils.ConstantPoolInfo pool[])
- Returns the reference to the constant pool item that is
already in pool, that matches this one.
All Packages Class Hierarchy This Package Previous Next Index