Class ObjectAnnotationVisitor

java.lang.Object
io.micronaut.sourcegen.generator.visitors.ObjectAnnotationVisitor
All Implemented Interfaces:
io.micronaut.core.order.Ordered, io.micronaut.core.util.Toggleable, io.micronaut.inject.visitor.TypeElementVisitor<Object,Object>

@Internal public final class ObjectAnnotationVisitor extends Object implements io.micronaut.inject.visitor.TypeElementVisitor<Object,Object>
The visitor that generates the Object class of a bean. The Object class can have functions substituting toString, equals, and hashcode. However, each method needs to be annotated to be generated. ToString annotation for toString function EqualsAndHashCode annotation for equals and hashCode functions
Since:
1.3
Author:
Elif Kurtay
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micronaut.inject.visitor.TypeElementVisitor

    io.micronaut.inject.visitor.TypeElementVisitor.VisitorKind
  • Field Summary

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    @NonNull io.micronaut.inject.visitor.TypeElementVisitor.VisitorKind
     
    void
    start(io.micronaut.inject.visitor.VisitorContext visitorContext)
     
    void
    visitClass(io.micronaut.inject.ast.ClassElement element, io.micronaut.inject.visitor.VisitorContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder

    Methods inherited from interface io.micronaut.core.util.Toggleable

    isEnabled

    Methods inherited from interface io.micronaut.inject.visitor.TypeElementVisitor

    finish, getClassType, getElementType, getSupportedOptions, visitConstructor, visitEnumConstant, visitField, visitMethod
  • Constructor Details

    • ObjectAnnotationVisitor

      public ObjectAnnotationVisitor()
  • Method Details

    • getVisitorKind

      @NonNull public @NonNull io.micronaut.inject.visitor.TypeElementVisitor.VisitorKind getVisitorKind()
      Specified by:
      getVisitorKind in interface io.micronaut.inject.visitor.TypeElementVisitor<Object,Object>
    • start

      public void start(io.micronaut.inject.visitor.VisitorContext visitorContext)
      Specified by:
      start in interface io.micronaut.inject.visitor.TypeElementVisitor<Object,Object>
    • getSupportedAnnotationNames

      public Set<String> getSupportedAnnotationNames()
      Specified by:
      getSupportedAnnotationNames in interface io.micronaut.inject.visitor.TypeElementVisitor<Object,Object>
    • visitClass

      public void visitClass(io.micronaut.inject.ast.ClassElement element, io.micronaut.inject.visitor.VisitorContext context)
      Specified by:
      visitClass in interface io.micronaut.inject.visitor.TypeElementVisitor<Object,Object>