Class ScannerBase<R>
java.lang.Object
javax.lang.model.util.AbstractElementVisitor6<R,State>
javax.lang.model.util.ElementScanner6<R,State>
com.google.web.bindery.requestfactory.apt.ScannerBase<R>
- All Implemented Interfaces:
ElementVisitor<R,State>
- Direct Known Subclasses:
DeobfuscatorBuilder,DomainChecker,DomainChecker.MethodFinder,ExtraTypesScanner,Finder,ProxyScanner,RequestContextScanner,RequestFactoryScanner
Contains utility methods for traversing RequestFactory declarations.
-
Field Summary
Fields inherited from class javax.lang.model.util.ElementScanner6
DEFAULT_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisGetter(ExecutableElement x, State state) No parameters, name stars with "get" or is a boolean / Boolean isFoo hasFoo method.protected booleanisSetter(ExecutableElement x, State state) Name starts with set, has one parameter, returns either null or something assignable from the element's enclosing type.protected static voidpoisonIfAnnotationPresent(State state, TypeElement x, Annotation... annotations) Poisons the given type if one or more of the annotation values are non-null.final Rprotected RscanAllInheritedMethods(TypeElement x, State state) protected booleanshouldIgnore(ExecutableElement x, State state) Ignore all static initializers and methods defined in the base RequestFactory interfacesprotected static ExecutableTypeviewIn(TypeElement lookIn, ExecutableElement methodElement, State state) Methods inherited from class javax.lang.model.util.ElementScanner6
scan, scan, visitExecutable, visitPackage, visitType, visitTypeParameter, visitVariableMethods inherited from class javax.lang.model.util.AbstractElementVisitor6
visit, visit, visitModule, visitRecordComponent, visitUnknown
-
Constructor Details
-
ScannerBase
ScannerBase()
-
-
Method Details
-
poisonIfAnnotationPresent
protected static void poisonIfAnnotationPresent(State state, TypeElement x, Annotation... annotations) Poisons the given type if one or more of the annotation values are non-null. -
viewIn
protected static ExecutableType viewIn(TypeElement lookIn, ExecutableElement methodElement, State state) -
scan
- Overrides:
scanin classElementScanner6<R,State>
-
isGetter
No parameters, name stars with "get" or is a boolean / Boolean isFoo hasFoo method. -
isSetter
Name starts with set, has one parameter, returns either null or something assignable from the element's enclosing type. -
scanAllInheritedMethods
-
shouldIgnore
Ignore all static initializers and methods defined in the base RequestFactory interfaces
-