ConstantNameAndTypeInfopublic class ConstantNameAndTypeInfo extends ConstantPoolInfo Encapsulates a CONSTANT_NameAndType member of a Java
class file constant pool. |
Fields Summary |
---|
private int | nameIndexconstant pool index of a name, varies by use of this
ConstantNameAndTypeInfo object | private int | descriptorIndexconstant pool index of a descriptor, varies by use of this
ConstantNameAndTypeInfo object. |
Constructors Summary |
---|
public ConstantNameAndTypeInfo(DataInputStream iStream)Constructor. Creates a ConstantNameAndTypeInfo object.
tag = ConstantPoolInfo.CONSTANT_NameAndType;
nameIndex = iStream.readUnsignedShort ();
descriptorIndex = iStream.readUnsignedShort ();
|
Methods Summary |
---|
public java.lang.String | toString()Returns this ConstantNameAndTypeInfo object's info as a string for
displaying.
return ("CONSTANT_NameAndType" + "\tnameIndex=" +
nameIndex + "\tdescriptorIndex=" + descriptorIndex);
|
|