Class IntrospectedTypeElementVisitor
- java.lang.Object
-
- io.micronaut.inject.beans.visitor.IntrospectedTypeElementVisitor
-
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,io.micronaut.core.util.Toggleable
,TypeElementVisitor<java.lang.Object,java.lang.Object>
@Internal public class IntrospectedTypeElementVisitor extends java.lang.Object implements TypeElementVisitor<java.lang.Object,java.lang.Object>
ATypeElementVisitor
that visits classes annotated withIntrospected
and producesBeanIntrospectionReference
instances at compilation time.- Since:
- 1.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
TypeElementVisitor.VisitorKind
-
-
Field Summary
Fields Modifier and Type Field Description static int
POSITION
The position of the visitor.
-
Constructor Summary
Constructors Constructor Description IntrospectedTypeElementVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finish(VisitorContext visitorContext)
Called once when visitor processing finishes.int
getOrder()
TypeElementVisitor.VisitorKind
getVisitorKind()
void
visitClass(ClassElement element, VisitorContext context)
Executed when a class is encountered that matches the <C> generic.void
visitConstructor(ConstructorElement element, VisitorContext context)
Executed when a constructor is encountered that matches the <C> generic.void
visitField(FieldElement element, VisitorContext context)
Executed when a field is encountered that matches the <E> generic.void
visitMethod(MethodElement element, VisitorContext context)
Executed when a method is encountered that matches the <E> generic.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
getClassType, getElementType, getSupportedAnnotationNames, getSupportedOptions, start, visitEnumConstant
-
-
-
-
Field Detail
-
POSITION
public static final int POSITION
The position of the visitor.- See Also:
- Constant Field Values
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-
visitClass
public void visitClass(ClassElement element, VisitorContext context)
Description copied from interface:TypeElementVisitor
Executed when a class is encountered that matches the <C> generic.- Specified by:
visitClass
in interfaceTypeElementVisitor<java.lang.Object,java.lang.Object>
- Parameters:
element
- The elementcontext
- The visitor context
-
visitConstructor
public void visitConstructor(ConstructorElement element, VisitorContext context)
Description copied from interface:TypeElementVisitor
Executed when a constructor is encountered that matches the <C> generic.- Specified by:
visitConstructor
in interfaceTypeElementVisitor<java.lang.Object,java.lang.Object>
- Parameters:
element
- The elementcontext
- The visitor context
-
visitMethod
public void visitMethod(MethodElement element, VisitorContext context)
Description copied from interface:TypeElementVisitor
Executed when a method is encountered that matches the <E> generic.- Specified by:
visitMethod
in interfaceTypeElementVisitor<java.lang.Object,java.lang.Object>
- Parameters:
element
- The elementcontext
- The visitor context
-
visitField
public void visitField(FieldElement element, VisitorContext context)
Description copied from interface:TypeElementVisitor
Executed when a field is encountered that matches the <E> generic.- Specified by:
visitField
in interfaceTypeElementVisitor<java.lang.Object,java.lang.Object>
- Parameters:
element
- The elementcontext
- The visitor context
-
getVisitorKind
@NonNull public TypeElementVisitor.VisitorKind getVisitorKind()
- Specified by:
getVisitorKind
in interfaceTypeElementVisitor<java.lang.Object,java.lang.Object>
- Returns:
- The visitor kind.
-
finish
public void finish(VisitorContext visitorContext)
Description copied from interface:TypeElementVisitor
Called once when visitor processing finishes.- Specified by:
finish
in interfaceTypeElementVisitor<java.lang.Object,java.lang.Object>
- Parameters:
visitorContext
- The visitor context
-
-