Enum Class AccumulationChecker.AliasAnalysis

All Implemented Interfaces:
Serializable, Comparable<AccumulationChecker.AliasAnalysis>, Constable
Enclosing class:

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


      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.
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null