classUtils.dumper
Class FieldInfo

java.lang.Object
  extended by classUtils.dumper.FieldInfo

public class FieldInfo
extends java.lang.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.

Version:
1.3, 16 Aug 1995

Constructor Summary
FieldInfo()
           
 
Method Summary
 boolean read(java.io.DataInputStream di, ConstantPoolInfo[] pool)
           
 java.lang.String toString()
           
 java.lang.String toString(ConstantPoolInfo[] pool)
           
 void write(java.io.DataOutputStream dos, ConstantPoolInfo[] pool)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldInfo

public FieldInfo()
Method Detail

read

public boolean read(java.io.DataInputStream di,
                    ConstantPoolInfo[] pool)
             throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.io.DataOutputStream dos,
                  ConstantPoolInfo[] pool)
           throws java.io.IOException,
                  java.lang.Exception
Throws:
java.io.IOException
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(ConstantPoolInfo[] pool)