Package io.ebean.enhance.entity
Class LocalFieldVisitor
java.lang.Object
io.ebean.enhance.asm.FieldVisitor
io.ebean.enhance.entity.LocalFieldVisitor
- All Implemented Interfaces:
EnhanceConstants
Used to collect information about a field (specifically from field annotations).
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.ebean.enhance.common.EnhanceConstants
EnhanceConstants.Jakarta, EnhanceConstants.Javax -
Field Summary
Fields inherited from interface io.ebean.enhance.common.EnhanceConstants
ARRAYLIST, BEANLIST, BEANMAP, BEANSET, C_BEANCOLLECTION, C_ENHANCEDTRANSACTIONAL, C_ENTITYBEAN, C_GROOVYOBJECT, C_INTERCEPT_I, C_INTERCEPT_RO, C_INTERCEPT_RW, C_MODEL, C_OBJECT, C_PERSISTBATCH, C_RECORDTYPE, C_SCALAOBJECT, C_TOSTRINGBUILDER, C_TXISOLATION, C_TXOPTION, C_TXSCOPE, C_TXTYPE, CLINIT, DOCSTORE_ANNOTATION, IDENTITY_FIELD, INIT, INTERCEPT_FIELD, L_DBARRAY, L_DRAFT, L_EBEAN_NOTNULL, L_HELPSCOPETRANS, L_INTERCEPT, L_JETBRAINS_NOTNULL, L_OBJECT, L_STRING, LINKEDHASHMAP, LINKEDHASHSET, MOCKITO_MOCK, NOARG_VOID, TRANSACTIONAL_ANNOTATION, TYPEQUERYBEAN_ANNOTATION -
Constructor Summary
ConstructorsConstructorDescriptionLocalFieldVisitor(FieldVisitor fv, FieldMeta fieldMeta) Constructor used for entity class enhancement. -
Method Summary
Modifier and TypeMethodDescriptionname()Return the field name.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.Methods inherited from class io.ebean.enhance.asm.FieldVisitor
getDelegate, visitTypeAnnotation
-
Constructor Details
-
LocalFieldVisitor
Constructor used for entity class enhancement.- Parameters:
fv- the fieldVisitor used to writefieldMeta- the fieldMeta data
-
-
Method Details
-
name
Return the field name. -
visitAnnotation
Description copied from class:FieldVisitorVisits an annotation of the field.- Overrides:
visitAnnotationin classFieldVisitor- Parameters:
desc- the class descriptor of the annotation class.visible- true if the annotation is visible at runtime.- Returns:
- a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.
-
visitAttribute
Description copied from class:FieldVisitorVisits a non standard attribute of the field.- Overrides:
visitAttributein classFieldVisitor- Parameters:
attr- an attribute.
-
visitEnd
Description copied from class: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.- Overrides:
visitEndin classFieldVisitor
-