Class WebSocketVisitor
java.lang.Object
io.micronaut.validation.websocket.WebSocketVisitor
- All Implemented Interfaces:
Ordered
,Toggleable
,TypeElementVisitor<WebSocketComponent,
WebSocketMapping>
@SupportedOptions("micronaut.websocket.validation")
public class WebSocketVisitor
extends Object
implements TypeElementVisitor<WebSocketComponent,WebSocketMapping>
A
TypeElementVisitor
that validates WebSocket implementations at compile time.- Since:
- 1.0
- Author:
- graemerocher
-
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
start
(VisitorContext visitorContext) Called once when visitor processing starts.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
finish, getClassType, getElementType, getSupportedOptions, visitClass, visitConstructor, visitEnumConstant, visitField
-
Constructor Details
-
WebSocketVisitor
public WebSocketVisitor()
-
-
Method Details
-
getVisitorKind
- Specified by:
getVisitorKind
in interfaceTypeElementVisitor<WebSocketComponent,
WebSocketMapping> - Returns:
- The visitor kind.
-
getSupportedAnnotationNames
- Specified by:
getSupportedAnnotationNames
in interfaceTypeElementVisitor<WebSocketComponent,
WebSocketMapping> - Returns:
- The supported default annotation names.
-
visitMethod
Description copied from interface:TypeElementVisitor
Executed when a method is encountered that matches the <E> generic.- Specified by:
visitMethod
in interfaceTypeElementVisitor<WebSocketComponent,
WebSocketMapping> - Parameters:
element
- The elementcontext
- The visitor context
-
start
Description copied from interface:TypeElementVisitor
Called once when visitor processing starts.- Specified by:
start
in interfaceTypeElementVisitor<WebSocketComponent,
WebSocketMapping> - Parameters:
visitorContext
- The visitor context
-