SyntheticAttributepublic class SyntheticAttribute extends Attribute Encapsulates the Synthetic 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 SyntheticAttribute(DataInputStream iStream, int attributeNameIndex, int attributeLength)Constructor. Reads the SyntheticAttribute attribute from
the class file.
this.attributeNameIndex = attributeNameIndex;
this.attributeLength = attributeLength;
|
Methods Summary |
---|
public java.lang.String | toString(ConstantPoolInfo[] constantPool)Returns the SyntheticAttribute 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;
|
|