DeprecatedAttributepublic class DeprecatedAttribute extends Attribute Encapsulates the Deprecated attribute of a Java class file.
This class has never been thoroughly tested. |
Fields Summary |
---|
private int | attributeNameIndexindex into the constant pool table containing the name
of this class | private int | attributeLengthlength of this attribute in bytes |
Constructors Summary |
---|
public DeprecatedAttribute(DataInputStream iStream, int attributeNameIndex, int attributeLength)Constructor. Reads the DeprecatedAttribute attribute from
the class file.
this.attributeNameIndex = attributeNameIndex;
this.attributeLength = attributeLength;
|
Methods Summary |
---|
public java.lang.String | toString(ConstantPoolInfo[] constantPool)Returns the DeprecatedAttribute attribute in a nice easy to
read format as a string.
ConstantUtf8Info utf8Info;
String s = new String ("");
utf8Info = (ConstantUtf8Info) constantPool[attributeNameIndex];
s = s + utf8Info.toString () + "\n";
return s;
|
|