wt.loader
Class FieldInfo

java.lang.Object
  extended bywt.loader.FieldInfo

public class FieldInfo
extends Object

This class defines a FieldInfo in the class file. Fields are used to describe instance variables in a class. The toString() method is augmented by a version that takes an array of ConstantPoolInfo objects (a constant pool). When a constant pool is available the toString() method generates a declaration for the field as it would appear in Java source.

See Also:
ClassFile

Field Summary
(package private)  short accessFlags
           
(package private)  AttributeInfo[] attributes
           
(package private)  ConstantPoolInfo name
           
(package private)  ConstantPoolInfo signature
           
private static String versionID
           
 
Constructor Summary
FieldInfo()
           
 
Method Summary
 boolean read(DataInputStream di, 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

accessFlags

short accessFlags

name

ConstantPoolInfo name

signature

ConstantPoolInfo signature

attributes

AttributeInfo[] attributes
Constructor Detail

FieldInfo

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

toString

public String toString()

toString

public String toString(ConstantPoolInfo[] pool)