public class FieldNode extends Object
Modifier and Type | Field and Description |
---|---|
int |
access
The field's access flags (see
Constants ). |
Attribute |
attrs
The non standard attributes of the field.
|
String |
desc
The field's descriptor (see
Type ). |
String |
name
The field's name.
|
Object |
value
The field's initial value.
|
Constructor and Description |
---|
FieldNode(int access,
String name,
String desc,
Object value,
Attribute attrs)
Constructs a new
FieldNode object. |
Modifier and Type | Method and Description |
---|---|
void |
accept(ClassVisitor cv)
Makes the given class visitor visit this field.
|
public int access
Constants
). This
field also indicates if the field is synthetic and/or deprecated.public String name
public Object value
public Attribute attrs
public FieldNode(int access, String name, String desc, Object value, Attribute attrs)
FieldNode
object.access
- the field's access flags (see Constants
). This parameter also indicates if the
field is synthetic and/or deprecated.name
- the field's name.desc
- the field's descriptor (see Type
).value
- the field's initial value. This parameter, 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
.attrs
- the non standard attributes of the field.public void accept(ClassVisitor cv)
cv
- a class visitor.Copyright © 2023. All rights reserved.