@Internal public final class AsyncTypeElementVisitor extends Object implements TypeElementVisitor<Object,Async>
TypeElementVisitor
that validates methods annotated with Async
return void or futures.TypeElementVisitor.VisitorKind
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
AsyncTypeElementVisitor() |
Modifier and Type | Method and Description |
---|---|
TypeElementVisitor.VisitorKind |
getVisitorKind() |
void |
visitMethod(MethodElement element,
VisitorContext context)
Executed when a method is encountered that matches the <E> generic.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish, getClassType, getElementType, getSupportedAnnotationNames, getSupportedOptions, start, visitClass, visitConstructor, visitEnumConstant, visitField
isEnabled
@NonNull public TypeElementVisitor.VisitorKind getVisitorKind()
getVisitorKind
in interface TypeElementVisitor<Object,Async>
public void visitMethod(MethodElement element, VisitorContext context)
TypeElementVisitor
visitMethod
in interface TypeElementVisitor<Object,Async>
element
- The elementcontext
- The visitor context