wt.loader
Class AttributeInfo
java.lang.Object
wt.loader.AttributeInfo
- public class AttributeInfo
- extends Object
This class defines the generic Attribute type for Java class files.
It is a little bit smart in that for some Attributes it can display
them intelligently if it also has access to the constant pool of the
current class.
- See Also:
ClassFile
versionID
private static final String versionID
- See Also:
- Constant Field Values
name
ConstantPoolInfo name
data
byte[] data
AttributeInfo
public AttributeInfo(ConstantPoolInfo newName,
byte[] newData)
AttributeInfo
public AttributeInfo()
read
public boolean read(DataInputStream di,
ConstantPoolInfo[] pool)
throws IOException
- Throws:
IOException
write
public void write(DataOutputStream dos,
ConstantPoolInfo[] pool)
throws IOException,
Exception
- Throws:
IOException
Exception
indexFromBytes
short indexFromBytes(byte[] a)
toString
public String toString(ConstantPoolInfo[] pool)
toBoolean
public String toBoolean(ConstantPoolInfo[] pool)
toString
public String toString()