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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionquery()The query which allows to reduce the scope which the visitor is visiting.voidstart(VisitorContext visitorContext) Called once when visitor processing starts.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, visitClass, visitConstructor, visitEnumConstant, visitField
-
Constructor Details
-
WebSocketVisitor
public WebSocketVisitor()
-
-
Method Details
-
getVisitorKind
- Specified by:
getVisitorKindin interfaceTypeElementVisitor<WebSocketComponent,WebSocketMapping> - Returns:
- The visitor kind.
-
getSupportedAnnotationNames
- Specified by:
getSupportedAnnotationNamesin interfaceTypeElementVisitor<WebSocketComponent,WebSocketMapping> - 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<WebSocketComponent,WebSocketMapping> - Returns:
- The query if the visitor.
-
visitMethod
Description copied from interface:TypeElementVisitorExecuted when a method is encountered that matches the <E> generic.- Specified by:
visitMethodin interfaceTypeElementVisitor<WebSocketComponent,WebSocketMapping> - Parameters:
element- The elementcontext- The visitor context
-
start
Description copied from interface:TypeElementVisitorCalled once when visitor processing starts.- Specified by:
startin interfaceTypeElementVisitor<WebSocketComponent,WebSocketMapping> - Parameters:
visitorContext- The visitor context
-