Class CanBeStaticAnalyzer.CanBeStaticResult

Enclosing class:

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<> methodsReferenced()
      Set of instance methods referenced by the method under inspection.
    • of

      public static CanBeStaticAnalyzer.CanBeStaticResult of(boolean canPossiblyBeStatic, Set<> methodsReferenced)