public class FieldNode extends MemberNode implements FieldVisitor
| Modifier and Type | Field and Description |
|---|---|
int |
access
The field's access flags (see
Opcodes). |
java.lang.String |
desc
The field's descriptor (see
Type). |
java.lang.String |
name
The field's name.
|
java.lang.String |
signature
The field's signature.
|
java.lang.Object |
value
The field's initial value.
|
attrs, invisibleAnnotations, visibleAnnotations| Constructor and Description |
|---|
FieldNode(int access,
java.lang.String name,
java.lang.String desc,
java.lang.String signature,
java.lang.Object value)
Constructs a new
FieldNode. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ClassVisitor cv)
Makes the given class visitor visit this field.
|
visitAnnotation, visitAttribute, visitEndclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitAnnotation, visitAttribute, visitEndpublic int access
Opcodes). This
field also indicates if the field is synthetic and/or deprecated.public java.lang.String name
public java.lang.String desc
Type).public java.lang.String signature
public java.lang.Object value
Integer, a
Float, a Long, a Double or a String.public FieldNode(int access,
java.lang.String name,
java.lang.String desc,
java.lang.String signature,
java.lang.Object value)
FieldNode.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 Integer, a Float, a Long, a
Double or a String.public void accept(ClassVisitor cv)
cv - a class visitor.Copyright © 2013 Oracle Corporation. All Rights Reserved.