public final class FieldInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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() |
public static java.lang.String JbetLogFacility
public int accessFlags
public java.lang.String name
public Type type
public boolean synthetic
public boolean deprecated
public java.lang.Object value
public ClassInfo cr
public static final int ACC_PUBLIC
public static final int ACC_PRIVATE
public static final int ACC_PROTECTED
public static final int ACC_STATIC
public static final int ACC_FINAL
public static final int ACC_VOLATILE
public static final int ACC_TRANSIENT
public static final int ACC_ALL_FFLAGS
public FieldInfo(Lexer lexer)
lexer
- a Lexer instancepublic FieldInfo(FieldInfo fi)
fi
- another instance of FieldInfopublic FieldInfo(java.lang.String n, Type t)
n
- namet
- typepublic FieldInfo(java.lang.String n, Type t, int a)
n
- namet
- typea
- access flagspublic FieldInfo(java.io.DataInputStream dataIn, jbet.ConstantPool constantPool) throws java.io.IOException, ClassFileException
dataIn
- input streamconstantPool
- constant pooljava.io.IOException
ClassFileException
public void disassemble(LineWriter out, java.lang.String prefix)
out
- print streamprefix
- output prefixpublic java.lang.String recString()
public void resolveConstants()
public boolean isStatic()
public static java.lang.String flags2str(int accessFlags)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- another FieldInfo instancepublic java.lang.String qualifiedName()