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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isGetter
(ExecutableElement x, State state) No parameters, name stars with "get" or is a boolean / Boolean isFoo hasFoo method.protected boolean
isSetter
(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 void
poisonIfAnnotationPresent
(State state, TypeElement x, Annotation... annotations) Poisons the given type if one or more of the annotation values are non-null.final R
protected R
scanAllInheritedMethods
(TypeElement x, State state) protected boolean
shouldIgnore
(ExecutableElement x, State state) Ignore all static initializers and methods defined in the base RequestFactory interfacesprotected static ExecutableType
viewIn
(TypeElement lookIn, ExecutableElement methodElement, State state) Methods inherited from class javax.lang.model.util.ElementScanner6
scan, scan, visitExecutable, visitPackage, visitType, visitTypeParameter, visitVariable
Methods 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:
scan
in 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
-