Class CanBeStaticAnalyzer.CanBeStaticResult
java.lang.Object
com.google.errorprone.bugpatterns.CanBeStaticAnalyzer.CanBeStaticResult
- Enclosing class:
CanBeStaticAnalyzer
Stores the result of a can-be-static query.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Whether the method could *possibly* be static: i.e., this is false if it references an instance field.abstract com.google.common.collect.ImmutableSet
<com.sun.tools.javac.code.Symbol.MethodSymbol> Set of instance methods referenced by the method under inspection.of
(boolean canPossiblyBeStatic, Set<com.sun.tools.javac.code.Symbol.MethodSymbol> methodsReferenced)
-
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)
-