Class FieldVisitor
🏭 Constructors
constructor
new FieldVisitor(api: number, fv: null | FieldVisitor= null): FieldVisitorConstructs a new FieldVisitor.
Parameters
- api:
numberthe ASM API version implemented by this visitor. Must be one of ASM4 or ASM5. - fv:
null | FieldVisitorthe field visitor to which this visitor must delegate method calls. May be null.
Return Type
FieldVisitor
Defined in: packages/asm/libs/FieldVisitor.ts:66
🏷️ Properties
api
api: numberThe ASM API version implemented by this visitor. The value of this field must be one of ASM4 or ASM5.
Defined in: packages/asm/libs/FieldVisitor.ts:48
fv
fv: null | FieldVisitorThe field visitor to which this visitor must delegate method calls. May be null.
Defined in: packages/asm/libs/FieldVisitor.ts:54
🔧 Methods
visitAnnotation
visitAnnotation(desc: null | string, visible: boolean): null | AnnotationVisitorVisits an annotation of the field.
Parameters
- desc:
null | stringthe class descriptor of the annotation class. - visible:
boolean<tt>true</tt> if the annotation is visible at runtime.
Return Type
null | AnnotationVisitor
Defined in: packages/asm/libs/FieldVisitor.ts:85
visitAttribute
visitAttribute(attr: Attribute): voidVisits a non standard attribute of the field.
Parameters
- attr:
Attributean attribute.
Return Type
void
Defined in: packages/asm/libs/FieldVisitor.ts:126
visitEnd
visitEnd(): voidVisits 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.
Return Type
void
Defined in: packages/asm/libs/FieldVisitor.ts:137
visitTypeAnnotation
visitTypeAnnotation(typeRef: number, typePath: null | TypePath, desc: null | string, visible: boolean): null | AnnotationVisitorVisits an annotation on the type of the field.
Parameters
- typeRef:
numbera reference to the annotated type. The sort of this type reference must be [TypeReference#FIELD FIELD]. See TypeReference. - typePath:
null | TypePaththe path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'. May be <tt>null</tt> if the annotation targets 'typeRef' as a whole. - desc:
null | stringthe class descriptor of the annotation class. - visible:
boolean<tt>true</tt> if the annotation is visible at runtime.
Return Type
null | AnnotationVisitor
Defined in: packages/asm/libs/FieldVisitor.ts:110