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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish
(VisitorContext visitorContext) Called once when visitor processing finishes.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.core.util.Toggleable
isEnabled
Methods inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
getClassType, getElementType, getSupportedAnnotationNames, getSupportedOptions, start, visitEnumConstant
-
Constructor Details
-
InternalApiTypeElementVisitor
public InternalApiTypeElementVisitor()
-
-
Method Details
-
getVisitorKind
- Specified by:
getVisitorKind
in interfaceTypeElementVisitor<Object,
Object> - Returns:
- The visitor kind.
-
visitClass
Description copied from interface:TypeElementVisitor
Executed when a class is encountered that matches the <C> generic.- Specified by:
visitClass
in interfaceTypeElementVisitor<Object,
Object> - Parameters:
element
- The elementcontext
- The visitor context
-
visitMethod
Description copied from interface:TypeElementVisitor
Executed when a method is encountered that matches the <E> generic.- Specified by:
visitMethod
in interfaceTypeElementVisitor<Object,
Object> - Parameters:
element
- The elementcontext
- The visitor context
-
visitConstructor
Description copied from interface:TypeElementVisitor
Executed when a constructor is encountered that matches the <C> generic.- Specified by:
visitConstructor
in interfaceTypeElementVisitor<Object,
Object> - Parameters:
element
- The elementcontext
- The visitor context
-
visitField
Description copied from interface:TypeElementVisitor
Executed when a field is encountered that matches the <E> generic.- Specified by:
visitField
in interfaceTypeElementVisitor<Object,
Object> - Parameters:
element
- The elementcontext
- The visitor context
-
finish
Description copied from interface:TypeElementVisitor
Called once when visitor processing finishes.- Specified by:
finish
in interfaceTypeElementVisitor<Object,
Object> - Parameters:
visitorContext
- The visitor context
-