Class ScannerBase<R>

All Implemented Interfaces:
ElementVisitor<R,State>
Direct Known Subclasses:
DeobfuscatorBuilder, DomainChecker, DomainChecker.MethodFinder, ExtraTypesScanner, Finder, ProxyScanner, RequestContextScanner, RequestFactoryScanner

class ScannerBase<R> extends ElementScanner6<R,State>
Contains utility methods for traversing RequestFactory declarations.
  • 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

      public final R scan(Element x, State state)
      Overrides:
      scan in class ElementScanner6<R,State>
    • isGetter

      protected boolean isGetter(ExecutableElement x, State state)
      No parameters, name stars with "get" or is a boolean / Boolean isFoo hasFoo method.
    • isSetter

      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.
    • scanAllInheritedMethods

      protected R scanAllInheritedMethods(TypeElement x, State state)
    • shouldIgnore

      protected boolean shouldIgnore(ExecutableElement x, State state)
      Ignore all static initializers and methods defined in the base RequestFactory interfaces