Class CanBeStaticAnalyzer.CanBeStaticResult

java.lang.Object
com.google.errorprone.bugpatterns.CanBeStaticAnalyzer.CanBeStaticResult
Enclosing class:
CanBeStaticAnalyzer

public abstract static class CanBeStaticAnalyzer.CanBeStaticResult extends Object
Stores the result of a can-be-static query.
  • Constructor Details

    • CanBeStaticResult

      public CanBeStaticResult()
  • Method Details

    • canPossiblyBeStatic

      public abstract boolean canPossiblyBeStatic()
      Whether the method could *possibly* be static: i.e., this is false if it references an instance field.
    • methodsReferenced

      public abstract com.google.common.collect.ImmutableSet<com.sun.tools.javac.code.Symbol.MethodSymbol> methodsReferenced()
      Set of instance methods referenced by the method under inspection.
    • of

      public static CanBeStaticAnalyzer.CanBeStaticResult of(boolean canPossiblyBeStatic, Set<com.sun.tools.javac.code.Symbol.MethodSymbol> methodsReferenced)