Class FieldNode
java.lang.Object
org.objectweb.asm.tree.MemberNode
org.objectweb.asm.tree.FieldNode
- All Implemented Interfaces:
FieldVisitor
A node that represents a field.
- Author:
- Eric Bruneton
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe field's access flags (seeOpcodes).The field's descriptor (seeType).The field's name.The field's signature.The field's initial value.Fields inherited from class MemberNode
attrs, invisibleAnnotations, visibleAnnotations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ClassVisitor cv) Makes the given class visitor visit this field.Methods inherited from class MemberNode
visitAnnotation, visitAttribute, visitEndMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FieldVisitor
visitAnnotation, visitAttribute, visitEnd
-
Field Details
-
access
public int accessThe field's access flags (seeOpcodes). This field also indicates if the field is synthetic and/or deprecated. -
name
The field's name. -
desc
-
signature
The field's signature. May be null. -
value
-
-
Constructor Details
-
FieldNode
Constructs a newFieldNode.- Parameters:
access- the field's access flags (seeOpcodes). This parameter also indicates if the field is synthetic and/or deprecated.name- the field's name.desc- the field's descriptor (seeType).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 anInteger, aFloat, aLong, aDoubleor aString.
-
-
Method Details
-
accept
Makes the given class visitor visit this field.- Parameters:
cv- a class visitor.
-