@SupportedOptions(value="micronaut.websocket.validation") public class WebSocketVisitor extends java.lang.Object implements TypeElementVisitor<WebSocketComponent,WebSocketMapping>
TypeElementVisitor
that validates WebSocket implementations at compile time.TypeElementVisitor.VisitorKind
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
WebSocketVisitor() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getSupportedAnnotationNames() |
TypeElementVisitor.VisitorKind |
getVisitorKind() |
void |
start(VisitorContext visitorContext)
Called once when visitor processing starts.
|
void |
visitMethod(MethodElement element,
VisitorContext context)
Executed when a method is encountered that matches the
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish, getSupportedOptions, visitClass, visitConstructor, visitField
@NonNull public TypeElementVisitor.VisitorKind getVisitorKind()
getVisitorKind
in interface TypeElementVisitor<WebSocketComponent,WebSocketMapping>
public java.util.Set<java.lang.String> getSupportedAnnotationNames()
getSupportedAnnotationNames
in interface TypeElementVisitor<WebSocketComponent,WebSocketMapping>
public void visitMethod(MethodElement element, VisitorContext context)
TypeElementVisitor
visitMethod
in interface TypeElementVisitor<WebSocketComponent,WebSocketMapping>
element
- The elementcontext
- The visitor contextpublic void start(VisitorContext visitorContext)
TypeElementVisitor
start
in interface TypeElementVisitor<WebSocketComponent,WebSocketMapping>
visitorContext
- The visitor context