|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.asm.FieldVisitor
org.objectweb.asm.tree.FieldNode
public class FieldNode
A node that represents a field.
| Field Summary | |
|---|---|
int |
access
The field's access flags (see Opcodes). |
List<Attribute> |
attrs
The non standard attributes of this field. |
String |
desc
The field's descriptor (see Type). |
List<AnnotationNode> |
invisibleAnnotations
The runtime invisible annotations of this field. |
String |
name
The field's name. |
String |
signature
The field's signature. |
Object |
value
The field's initial value. |
List<AnnotationNode> |
visibleAnnotations
The runtime visible annotations of this field. |
| Fields inherited from class org.objectweb.asm.FieldVisitor |
|---|
api, fv |
| Constructor Summary | |
|---|---|
FieldNode(int api,
int access,
String name,
String desc,
String signature,
Object value)
Constructs a new FieldNode. |
|
FieldNode(int access,
String name,
String desc,
String signature,
Object value)
Constructs a new FieldNode. |
|
| Method Summary | |
|---|---|
void |
accept(ClassVisitor cv)
Makes the given class visitor visit this field. |
void |
check(int api)
Checks that this field node is compatible with the given ASM API version. |
AnnotationVisitor |
visitAnnotation(String desc,
boolean visible)
Visits an annotation of the field. |
void |
visitAttribute(Attribute attr)
Visits a non standard attribute of the field. |
void |
visitEnd()
Visits the end of the field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int access
Opcodes). This
field also indicates if the field is synthetic and/or deprecated.
public String name
public String desc
Type).
public String signature
public Object value
Integer, a
Float, a Long, a Double or a String.
public List<AnnotationNode> visibleAnnotations
AnnotationNode objects. May be null.
public List<AnnotationNode> invisibleAnnotations
AnnotationNode objects. May be null.
public List<Attribute> attrs
Attribute objects. May be null.
| Constructor Detail |
|---|
public FieldNode(int access,
String name,
String desc,
String signature,
Object value)
FieldNode. Subclasses must not use this
constructor. Instead, they must use the
FieldNode(int, int, String, String, String, Object) version.
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 FieldNode(int api,
int access,
String name,
String desc,
String signature,
Object value)
FieldNode. Subclasses must not use this
constructor. Instead, they must use the
FieldNode(int, int, String, String, String, Object) version.
api - the ASM API version implemented by this visitor. Must be one
of Opcodes.ASM4.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.| Method Detail |
|---|
public AnnotationVisitor visitAnnotation(String desc,
boolean visible)
FieldVisitor
visitAnnotation in class FieldVisitordesc - the class descriptor of the annotation class.visible - true if the annotation is visible at runtime.
public void visitAttribute(Attribute attr)
FieldVisitor
visitAttribute in class FieldVisitorattr - an attribute.public void visitEnd()
FieldVisitor
visitEnd in class FieldVisitorpublic void check(int api)
api - an ASM API version. Must be one of Opcodes.ASM4.public void accept(ClassVisitor cv)
cv - a class visitor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||