类 FieldNode
java.lang.Object
org.beetl.ow2.asm.FieldVisitor
org.beetl.ow2.asm.tree.FieldNode
A node that represents a field.
- 作者:
- Eric Bruneton
-
字段概要
字段修饰符和类型字段说明intThe field's access flags (seeOpcodes).The non standard attributes of this field.The field's descriptor (seeType).The runtime invisible annotations of this field.The runtime invisible type annotations of this field.The field's className.The field's signature.The field's initial value.The runtime visible annotations of this field.The runtime visible type annotations of this field.从类继承的字段 org.beetl.ow2.asm.FieldVisitor
api, fv -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaccept(ClassVisitor cv) Makes the given class visitor visit this field.voidcheck(int api) Checks that this field node is compatible with the given ASM API version.visitAnnotation(String desc, boolean visible) Visits an annotation of the field.voidvisitAttribute(Attribute attr) Visits a non standard attribute of the field.voidvisitEnd()Visits the end of the field.visitTypeAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) Visits an annotation on the type of the field.
-
字段详细资料
-
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 className. -
desc
The field's descriptor (seeType). -
signature
The field's signature. May be null. -
value
-
visibleAnnotations
The runtime visible annotations of this field. This list is a list ofAnnotationNodeobjects. May be null. -
invisibleAnnotations
The runtime invisible annotations of this field. This list is a list ofAnnotationNodeobjects. May be null. -
visibleTypeAnnotations
The runtime visible type annotations of this field. This list is a list ofTypeAnnotationNodeobjects. May be null. -
invisibleTypeAnnotations
The runtime invisible type annotations of this field. This list is a list ofTypeAnnotationNodeobjects. May be null. -
attrs
The non standard attributes of this field. This list is a list ofAttributeobjects. May be null.
-
-
构造器详细资料
-
FieldNode
Constructs a newFieldNode. Subclasses must not use this constructor. Instead, they must use theFieldNode(int, int, String, String, String, Object)version.- 参数:
access- the field's access flags (seeOpcodes). This parameter also indicates if the field is synthetic and/or deprecated.name- the field's className.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.- 抛出:
IllegalStateException- If a subclass calls this constructor.
-
FieldNode
Constructs a newFieldNode. Subclasses must not use this constructor.- 参数:
api- the ASM API version implemented by this visitor. Must be one ofOpcodes.ASM4orOpcodes.ASM5.access- the field's access flags (seeOpcodes). This parameter also indicates if the field is synthetic and/or deprecated.name- the field's className.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.
-
-
方法详细资料
-
visitAnnotation
从类复制的说明:FieldVisitorVisits an annotation of the field.- 覆盖:
visitAnnotation在类中FieldVisitor- 参数:
desc- the class descriptor of the annotation class.visible- true if the annotation is visible at runtime.- 返回:
- a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.
-
visitTypeAnnotation
public AnnotationVisitor visitTypeAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) 从类复制的说明:FieldVisitorVisits an annotation on the type of the field.- 覆盖:
visitTypeAnnotation在类中FieldVisitor- 参数:
typeRef- a reference to the annotated type. The sort of this type reference must beFIELD. SeeTypeReference.typePath- the path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'. May be null if the annotation targets 'typeRef' as a whole.desc- the class descriptor of the annotation class.visible- true if the annotation is visible at runtime.- 返回:
- a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.
-
visitAttribute
从类复制的说明:FieldVisitorVisits a non standard attribute of the field.- 覆盖:
visitAttribute在类中FieldVisitor- 参数:
attr- an attribute.
-
visitEnd
public void visitEnd()从类复制的说明:FieldVisitorVisits the end of the field. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the field have been visited.- 覆盖:
visitEnd在类中FieldVisitor
-
check
public void check(int api) Checks that this field node is compatible with the given ASM API version. This methods checks that this node, and all its nodes recursively, do not contain elements that were introduced in more recent versions of the ASM API than the given version.- 参数:
api- an ASM API version. Must be one ofOpcodes.ASM4orOpcodes.ASM5.
-
accept
Makes the given class visitor visit this field.- 参数:
cv- a class visitor.
-