An entry in the constant pool. This class contains a representation of the
constant pool entries. It is an abstract base class for all the different
forms of constant pool entry.
See Also:ConstantPool
public ConstantPoolEntry(int tagValue, int entries)(Code)
Initialise the constant pool entry.
Parameters: tagValue - the tag value which identifies which type of constantpool entry this is. Parameters: entries - the number of constant pool entry slots this entryoccupies.
Indicates whether this entry has been resolved. In general a constant
pool entry can reference another constant pool entry by its index
value. Resolution involves replacing this index value with the
constant pool entry at that index.
true if this entry has been resolved.
read a constant pool entry from a class stream.
Parameters: cpStream - the DataInputStream which contains the constant poolentry to be read. exception: IOException - if there is a problem reading the entry fromthe stream.
Read a constant pool entry from a stream. This is a factory method
which reads a constant pool entry form a stream and returns the
appropriate subclass for the entry.
Parameters: cpStream - the stream from which the constant pool entry is tobe read. the appropriate ConstantPoolEntry subclass representing theconstant pool entry from the stream. exception: IOException - if the constant pool entry cannot be readfrom the stream
Resolve this constant pool entry with respect to its dependents in
the constant pool.
Parameters: constantPool - the constant pool of which this entry is a memberand against which this entry is to be resolved.