org.objectweb.asm.tree
Class FieldNode
- FieldVisitor
A node that represents a field.
- Eric Bruneton
int | access - The field's access flags (see
Opcodes ).
|
String | desc - The field's descriptor (see
Type ).
|
String | name - The field's name.
|
String | signature - The field's signature.
|
Object | value - The field's initial value.
|
FieldNode(int access, String name, String desc, String signature, Object value) - Constructs a new
FieldNode .
|
access
public int access
The field's access flags (see
Opcodes
). This field also indicates
if the field is synthetic and/or deprecated.
desc
public String desc
The field's descriptor (see
Type
).
name
public String name
The field's name.
signature
public String signature
The field's signature. May be null.
value
public Object value
The field's initial value. This field, which may be null if the
field does not have an initial value, must be an Integer
, a
Float
, a Long
, a Double
or a String
.
FieldNode
public FieldNode(int access,
String name,
String desc,
String signature,
Object value)
Constructs a new
FieldNode
.
Integer
, a
Float
, a
Long
, a
Double
or
a
String
.
access
- the field's access flags (see Opcodes
). This
parameter also indicates if the field is synthetic and/or deprecated.name
- the field's name.desc
- the field's descriptor (see Type
).signature
- the field's signature.value
- the field's initial value. This parameter, which may be
null if the field does not have an initial value, must be an
accept
public void accept(ClassVisitor cv)
Makes the given class visitor visit this field.
cv
- a class visitor.