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

Variable Index

 o arg1
 o arg2
 o ASCIZ
 o CLASS
 o DOUBLE
 o doubleValue
 o FIELDREF
 o FLOAT
 o floatValue
 o index1
 o index2
 o INTEGER
 o INTERFACE
 o intValue
 o LONG
 o longValue
 o METHODREF
 o name
 o NAMEANDTYPE
 o STRING
 o strValue
 o type
 o UNICODE

Constructor Index

 o ConstantPoolInfo()
Generic constructor
 o ConstantPoolInfo(double)
Construct a new ConstantPoolInfo object that is of type DOUBLE
 o ConstantPoolInfo(float)
Construct a new ConstantPoolInfo object that is of type FLOAT
 o ConstantPoolInfo(int)
Construct a new ConstantPoolInfo object that is of type INTEGER
 o ConstantPoolInfo(long)
Construct a new ConstantPoolInfo object that is of type LONG
 o ConstantPoolInfo(String)
Construct a new ConstantPoolInfo object that is of type ASCIZ

Method Index

 o indexOf(ConstantPoolInfo, ConstantPoolInfo[])
 o inPool(ConstantPoolInfo[])
Returns the reference to the constant pool item that is already in pool, that matches this one.
 o isEqual(ConstantPoolInfo)
Returns true if these constant pool items are identical.
 o isType()
return the type of this constant pool item.
 o read(DataInputStream)
 o toString()
 o write(DataOutputStream, ConstantPoolInfo[])

Variables

 o type
 int type
 o name
 java.lang.String name
 o arg1
 futils.utils.ConstantPoolInfo arg1
 o arg2
 futils.utils.ConstantPoolInfo arg2
 o index1
 short index1
 o index2
 short index2
 o strValue
 java.lang.String strValue
 o intValue
 int intValue
 o longValue
 long longValue
 o floatValue
 float floatValue
 o doubleValue
 double doubleValue
 o CLASS
 public static final int CLASS
 o FIELDREF
 public static final int FIELDREF
 o METHODREF
 public static final int METHODREF
 o STRING
 public static final int STRING
 o INTEGER
 public static final int INTEGER
 o FLOAT
 public static final int FLOAT
 o LONG
 public static final int LONG
 o DOUBLE
 public static final int DOUBLE
 o INTERFACE
 public static final int INTERFACE
 o NAMEANDTYPE
 public static final int NAMEANDTYPE
 o ASCIZ
 public static final int ASCIZ
 o UNICODE
 public static final int UNICODE

Constructors

 o ConstantPoolInfo
 public ConstantPoolInfo(java.lang.String value)
Construct a new ConstantPoolInfo object that is of type ASCIZ

 o ConstantPoolInfo
 public ConstantPoolInfo(int value)
Construct a new ConstantPoolInfo object that is of type INTEGER

 o ConstantPoolInfo
 public ConstantPoolInfo(float value)
Construct a new ConstantPoolInfo object that is of type FLOAT

 o ConstantPoolInfo
 public ConstantPoolInfo(long value)
Construct a new ConstantPoolInfo object that is of type LONG

 o ConstantPoolInfo
 public ConstantPoolInfo(double value)
Construct a new ConstantPoolInfo object that is of type DOUBLE

 o ConstantPoolInfo
 public ConstantPoolInfo()
Generic constructor

Methods

 o isType
 public int isType()
return the type of this constant pool item.

 o read
 public boolean read(java.io.DataInputStream dis) throws java.io.IOException
 o write
 public void write(java.io.DataOutputStream dos,
                   futils.utils.ConstantPoolInfo pool[]) throws java.io.IOException, java.lang.Exception
 o toString
 public java.lang.String toString()
Overrides:
toString in class java.lang.Object
 o indexOf
 public static short indexOf(futils.utils.ConstantPoolInfo item,
                             futils.utils.ConstantPoolInfo pool[]) throws java.lang.Exception
 o isEqual
 public boolean isEqual(futils.utils.ConstantPoolInfo cp)
Returns true if these constant pool items are identical.

 o 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