Class MapperVisitor
java.lang.Object
io.micronaut.inject.beans.visitor.MapperVisitor
- All Implemented Interfaces:
Ordered,Toggleable,TypeElementVisitor<Object,Mapper>
The mapper visitor.
- Since:
- 4.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
TypeElementVisitor.VisitorKind -
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionquery()The query which allows to reduce the scope which the visitor is visiting.voidvisitClass(ClassElement element, VisitorContext context) Executed when a class is encountered that matches the <C> generic.voidvisitMethod(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, waitMethods inherited from interface io.micronaut.core.util.Toggleable
isEnabledMethods inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
finish, getClassType, getElementType, getSupportedOptions, start, visitConstructor, visitEnumConstant, visitField
-
Constructor Details
-
MapperVisitor
public MapperVisitor()
-
-
Method Details
-
getSupportedAnnotationNames
- Specified by:
getSupportedAnnotationNamesin interfaceTypeElementVisitor<Object,Mapper> - Returns:
- The supported default annotation names.
-
query
Description copied from interface:TypeElementVisitorThe query which allows to reduce the scope which the visitor is visiting.- Specified by:
queryin interfaceTypeElementVisitor<Object,Mapper> - Returns:
- The query if the visitor.
-
visitClass
Description copied from interface:TypeElementVisitorExecuted when a class is encountered that matches the <C> generic.- Specified by:
visitClassin interfaceTypeElementVisitor<Object,Mapper> - Parameters:
element- The elementcontext- The visitor context
-
visitMethod
Description copied from interface:TypeElementVisitorExecuted when a method is encountered that matches the <E> generic.- Specified by:
visitMethodin interfaceTypeElementVisitor<Object,Mapper> - Parameters:
element- The elementcontext- The visitor context
-
getVisitorKind
- Specified by:
getVisitorKindin interfaceTypeElementVisitor<Object,Mapper> - Returns:
- The visitor kind.
-