Package io.micronaut.context.visitor
Class InternalApiTypeElementVisitor
java.lang.Object
io.micronaut.context.visitor.InternalApiTypeElementVisitor
- All Implemented Interfaces:
Ordered,Toggleable,TypeElementVisitor<Object,Object>
@Internal
public class InternalApiTypeElementVisitor
extends Object
implements TypeElementVisitor<Object,Object>
Logs warnings during compilation if any class extends an internal or
experimental Micronaut API.
- Since:
- 1.1.0
- Author:
- James Kleeh
-
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 TypeMethodDescriptionvoidfinish(VisitorContext visitorContext) Called once when visitor processing finishes.Called once when processor loads.voidvisitClass(ClassElement element, VisitorContext context) Executed when a class is encountered that matches the <C> generic.voidvisitConstructor(ConstructorElement element, VisitorContext context) Executed when a constructor 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
getClassType, getElementType, start, visitEnumConstant, visitField
-
Constructor Details
-
InternalApiTypeElementVisitor
public InternalApiTypeElementVisitor()
-
-
Method Details
-
getSupportedAnnotationNames
- Specified by:
getSupportedAnnotationNamesin interfaceTypeElementVisitor<Object,Object> - Returns:
- The supported default annotation names.
-
getSupportedOptions
Description copied from interface:TypeElementVisitorCalled once when processor loads. Used to expose visitors custom processor options.- Specified by:
getSupportedOptionsin interfaceTypeElementVisitor<Object,Object> - Returns:
- Set with custom options
-
getVisitorKind
- Specified by:
getVisitorKindin interfaceTypeElementVisitor<Object,Object> - Returns:
- The visitor kind.
-
visitClass
Description copied from interface:TypeElementVisitorExecuted when a class is encountered that matches the <C> generic.- Specified by:
visitClassin interfaceTypeElementVisitor<Object,Object> - 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,Object> - Parameters:
element- The elementcontext- The visitor context
-
visitConstructor
Description copied from interface:TypeElementVisitorExecuted when a constructor is encountered that matches the <C> generic.- Specified by:
visitConstructorin interfaceTypeElementVisitor<Object,Object> - Parameters:
element- The elementcontext- The visitor context
-
finish
Description copied from interface:TypeElementVisitorCalled once when visitor processing finishes.- Specified by:
finishin interfaceTypeElementVisitor<Object,Object> - Parameters:
visitorContext- The visitor context
-