Enum Class AccumulationChecker.AliasAnalysis

java.lang.Object
java.lang.Enum<AccumulationChecker.AliasAnalysis>
org.checkerframework.common.accumulation.AccumulationChecker.AliasAnalysis
All Implemented Interfaces:
Serializable, Comparable<AccumulationChecker.AliasAnalysis>, Constable
Enclosing class:
AccumulationChecker

public static enum AccumulationChecker.AliasAnalysis extends Enum<AccumulationChecker.AliasAnalysis>
The alias analyses that an accumulation checker can support. To add support for a new alias analysis, add a new item to this enum and then implement any functionality of the checker behind a call to AccumulationChecker.isEnabled(AliasAnalysis).
  • Enum Constant Details

    • RETURNS_RECEIVER

      public static final AccumulationChecker.AliasAnalysis RETURNS_RECEIVER
      An alias analysis that detects methods that always return their own receiver (i.e. whose return value and receiver are aliases).
  • Method Details

    • values

      public static AccumulationChecker.AliasAnalysis[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AccumulationChecker.AliasAnalysis valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null