Methods Summary |
---|
public java.lang.String | getName()Get the name component of this entry
return name;
|
public java.lang.String | getType()Get the type signature of this entry
return type;
|
public void | read(java.io.DataInputStream cpStream)read a constant pool entry from a class stream.
nameIndex = cpStream.readUnsignedShort();
descriptorIndex = cpStream.readUnsignedShort();
|
public void | resolve(ConstantPool constantPool)Resolve this constant pool entry with respect to its dependents in
the constant pool.
name = ((Utf8CPInfo) constantPool.getEntry(nameIndex)).getValue();
type = ((Utf8CPInfo) constantPool.getEntry(descriptorIndex)).getValue();
super.resolve(constantPool);
|
public java.lang.String | toString()Print a readable version of the constant pool entry.
String value;
if (isResolved()) {
value = "Name = " + name + ", type = " + type;
} else {
value = "Name index = " + nameIndex
+ ", descriptor index = " + descriptorIndex;
}
return value;
|