public abstract class ConstantPoolEntry extends Object
ConstantPool| Modifier and Type | Field and Description | 
|---|---|
| static int | CONSTANT_CLASSTag value for Class entries. | 
| static int | CONSTANT_DOUBLETag value for Double entries. | 
| static int | CONSTANT_FIELDREFTag value for Field Reference entries. | 
| static int | CONSTANT_FLOATTag value for Float entries. | 
| static int | CONSTANT_INTEGERTag value for Integer entries. | 
| static int | CONSTANT_INTERFACEMETHODREFTag value for Interface Method Reference entries. | 
| static int | CONSTANT_INVOKEDYNAMICTag value for InvokeDynamic entries | 
| static int | CONSTANT_LONGTag value for Long entries. | 
| static int | CONSTANT_METHODHANDLETag value for Method Handle entries | 
| static int | CONSTANT_METHODREFTag value for Method Reference entries. | 
| static int | CONSTANT_METHODTYPETag value for Method Type entries | 
| static int | CONSTANT_NAMEANDTYPETag value for Name and Type entries. | 
| static int | CONSTANT_STRINGTag value for String entries. | 
| static int | CONSTANT_UTF8Tag value for UTF8 entries. | 
| Constructor and Description | 
|---|
| ConstantPoolEntry(int tagValue,
                 int entries)Initialise the constant pool entry. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getNumEntries()Get the number of Constant Pool Entry slots within the constant pool
 occupied by this entry. | 
| int | getTag()Get the Entry's type tag. | 
| boolean | isResolved()Indicates whether this entry has been resolved. | 
| abstract void | read(DataInputStream cpStream)read a constant pool entry from a class stream. | 
| static ConstantPoolEntry | readEntry(DataInputStream cpStream)Read a constant pool entry from a stream. | 
| void | resolve(ConstantPool constantPool)Resolve this constant pool entry with respect to its dependents in
 the constant pool. | 
public static final int CONSTANT_CLASS
public static final int CONSTANT_DOUBLE
public static final int CONSTANT_FIELDREF
public static final int CONSTANT_FLOAT
public static final int CONSTANT_INTEGER
public static final int CONSTANT_INTERFACEMETHODREF
public static final int CONSTANT_INVOKEDYNAMIC
public static final int CONSTANT_LONG
public static final int CONSTANT_METHODHANDLE
public static final int CONSTANT_METHODREF
public static final int CONSTANT_METHODTYPE
public static final int CONSTANT_NAMEANDTYPE
public static final int CONSTANT_STRING
public static final int CONSTANT_UTF8
public ConstantPoolEntry(int tagValue,
                         int entries)
tagValue - the tag value which identifies which type of constant
      pool entry this is.entries - the number of constant pool entry slots this entry
      occupies.public final int getNumEntries()
public int getTag()
public boolean isResolved()
public abstract void read(DataInputStream cpStream) throws IOException
cpStream - the DataInputStream which contains the constant pool
      entry to be read.IOException - if there is a problem reading the entry from
      the stream.public static ConstantPoolEntry readEntry(DataInputStream cpStream) throws IOException
cpStream - the stream from which the constant pool entry is to
      be read.IOException - if the constant pool entry cannot be read
      from the streampublic void resolve(ConstantPool constantPool)
constantPool - the constant pool of which this entry is a member
      and against which this entry is to be resolved.