Package io.micronaut.graal.reflect
Class GraalTypeElementVisitor
java.lang.Object
io.micronaut.graal.reflect.GraalTypeElementVisitor
- All Implemented Interfaces:
Ordered
,Toggleable
,TypeElementVisitor<Object,
Object>
Generates the GraalVM reflect.json file at compilation time.
- Since:
- 1.1
- Author:
- graemerocher, Iván López
-
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.int
getOrder()
void
visitClass
(ClassElement element, VisitorContext context) Executed when a class is encountered that matches the <C> 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, getSupportedOptions, start, visitConstructor, visitEnumConstant, visitField, visitMethod
-
Field Details
-
POSITION
public static final int POSITIONThe position of the visitor.- See Also:
-
-
Constructor Details
-
GraalTypeElementVisitor
public GraalTypeElementVisitor()
-
-
Method Details
-
getOrder
public int getOrder() -
getSupportedAnnotationNames
- Specified by:
getSupportedAnnotationNames
in interfaceTypeElementVisitor<Object,
Object> - Returns:
- The supported default annotation names.
-
getVisitorKind
- Specified by:
getVisitorKind
in interfaceTypeElementVisitor<Object,
Object> - Returns:
- The visitor kind.
-
finish
Description copied from interface:TypeElementVisitor
Called once when visitor processing finishes.- Specified by:
finish
in interfaceTypeElementVisitor<Object,
Object> - Parameters:
visitorContext
- The visitor context
-
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
-