wt.loader
Class AttributeInfo

java.lang.Object
  extended bywt.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

Field Summary
(package private)  byte[] data
           
(package private)  ConstantPoolInfo name
           
private static String versionID
           
 
Constructor Summary
AttributeInfo()
           
AttributeInfo(ConstantPoolInfo newName, byte[] newData)
           
 
Method Summary
(package private)  short indexFromBytes(byte[] a)
           
 boolean read(DataInputStream di, ConstantPoolInfo[] pool)
           
 String toBoolean(ConstantPoolInfo[] pool)
           
 String toString()
           
 String toString(ConstantPoolInfo[] pool)
           
 void write(DataOutputStream dos, ConstantPoolInfo[] pool)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

name

ConstantPoolInfo name

data

byte[] data
Constructor Detail

AttributeInfo

public AttributeInfo(ConstantPoolInfo newName,
                     byte[] newData)

AttributeInfo

public AttributeInfo()
Method Detail

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()