Class LocalFieldVisitor

java.lang.Object
io.ebean.enhance.asm.FieldVisitor
io.ebean.enhance.entity.LocalFieldVisitor
All Implemented Interfaces:
EnhanceConstants

public class LocalFieldVisitor extends FieldVisitor implements EnhanceConstants
Used to collect information about a field (specifically from field annotations).
  • Constructor Details

    • LocalFieldVisitor

      public LocalFieldVisitor(FieldVisitor fv, FieldMeta fieldMeta)
      Constructor used for entity class enhancement.
      Parameters:
      fv - the fieldVisitor used to write
      fieldMeta - the fieldMeta data
  • Method Details

    • getName

      public String getName()
      Return the field name.
    • visitAnnotation

      public AnnotationVisitor visitAnnotation(String desc, boolean visible)
      Description copied from class: FieldVisitor
      Visits an annotation of the field.
      Overrides:
      visitAnnotation in class FieldVisitor
      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

      public void visitAttribute(Attribute attr)
      Description copied from class: FieldVisitor
      Visits a non standard attribute of the field.
      Overrides:
      visitAttribute in class FieldVisitor
      Parameters:
      attr - an attribute.
    • visitEnd

      public void visitEnd()
      Description copied from class: FieldVisitor
      Visits 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:
      visitEnd in class FieldVisitor