jbet
Class FieldInfo

java.lang.Object
  extended by jbet.FieldInfo

public final class FieldInfo
extends java.lang.Object


Field Summary
static int ACC_ALL_FFLAGS
           
static int ACC_FINAL
           
static int ACC_PRIVATE
           
static int ACC_PROTECTED
           
static int ACC_PUBLIC
           
static int ACC_STATIC
           
static int ACC_TRANSIENT
           
static int ACC_VOLATILE
           
 int accessFlags
           
 ClassInfo cr
           
 boolean deprecated
           
static java.lang.String JbetLogFacility
           
 java.lang.String name
           
 boolean synthetic
           
 Type type
           
 java.lang.Object value
           
 
Constructor Summary
FieldInfo(java.io.DataInputStream dataIn, jbet.ConstantPool constantPool)
          Constructor given an input file.
FieldInfo(FieldInfo fi)
          Copy Constructor.
FieldInfo(Lexer lexer)
          Constructor.
FieldInfo(java.lang.String n, Type t)
          Constructor
FieldInfo(java.lang.String n, Type t, int a)
          Constructor
 
Method Summary
 void disassemble(LineWriter out, java.lang.String prefix)
          disassemble
 boolean equals(java.lang.Object o)
          Override equals, make it EQ.
static java.lang.String flags2str(int accessFlags)
          convert access flags to string
 boolean isStatic()
          test if a field is static.
 java.lang.String qualifiedName()
           
 java.lang.String recString()
          Return a printable string: flags name value
 void resolveConstants()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JbetLogFacility

public static java.lang.String JbetLogFacility

accessFlags

public int accessFlags

name

public java.lang.String name

type

public Type type

synthetic

public boolean synthetic

deprecated

public boolean deprecated

value

public java.lang.Object value

cr

public ClassInfo cr

ACC_PUBLIC

public static final int ACC_PUBLIC
See Also:
Constant Field Values

ACC_PRIVATE

public static final int ACC_PRIVATE
See Also:
Constant Field Values

ACC_PROTECTED

public static final int ACC_PROTECTED
See Also:
Constant Field Values

ACC_STATIC

public static final int ACC_STATIC
See Also:
Constant Field Values

ACC_FINAL

public static final int ACC_FINAL
See Also:
Constant Field Values

ACC_VOLATILE

public static final int ACC_VOLATILE
See Also:
Constant Field Values

ACC_TRANSIENT

public static final int ACC_TRANSIENT
See Also:
Constant Field Values

ACC_ALL_FFLAGS

public static final int ACC_ALL_FFLAGS
See Also:
Constant Field Values
Constructor Detail

FieldInfo

public FieldInfo(Lexer lexer)
Constructor.

Parameters:
lexer - a Lexer instance

FieldInfo

public FieldInfo(FieldInfo fi)
Copy Constructor.

Parameters:
fi - another instance of FieldInfo

FieldInfo

public FieldInfo(java.lang.String n,
                 Type t)
Constructor

Parameters:
n - name
t - type

FieldInfo

public FieldInfo(java.lang.String n,
                 Type t,
                 int a)
Constructor

Parameters:
n - name
t - type
a - access flags

FieldInfo

public FieldInfo(java.io.DataInputStream dataIn,
                 jbet.ConstantPool constantPool)
          throws java.io.IOException,
                 ClassFileException
Constructor given an input file.

Parameters:
dataIn - input stream
constantPool - constant pool
Throws:
java.io.IOException
ClassFileException
Method Detail

disassemble

public void disassemble(LineWriter out,
                        java.lang.String prefix)
disassemble

Parameters:
out - print stream
prefix - output prefix

recString

public java.lang.String recString()
Return a printable string: flags name value

Returns:
printable string

resolveConstants

public void resolveConstants()

isStatic

public boolean isStatic()
test if a field is static.

Returns:
TRUE if static

flags2str

public static java.lang.String flags2str(int accessFlags)
convert access flags to string

Returns:
printable access flags

equals

public boolean equals(java.lang.Object o)
Override equals, make it EQ.

Overrides:
equals in class java.lang.Object
Parameters:
o - another FieldInfo instance
Returns:
TRUE if same object

qualifiedName

public java.lang.String qualifiedName()