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 Summary
Constructors Constructor Description CanBeStaticResult()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
canPossiblyBeStatic()
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>
methodsReferenced()
Set of instance methods referenced by the method under inspection.static CanBeStaticAnalyzer.CanBeStaticResult
of(boolean canPossiblyBeStatic, Set<com.sun.tools.javac.code.Symbol.MethodSymbol> methodsReferenced)
-
-
-
Method Detail
-
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)
-
-