Class CanBeStaticAnalyzer.CanBeStaticResult

  • Enclosing class:
    CanBeStaticAnalyzer

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

      • CanBeStaticResult

        public CanBeStaticResult()
    • 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.