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)
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn alias analysis that detects methods that always return their own receiver (i.e. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AccumulationChecker.AliasAnalysis[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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 nameNullPointerException
- if the argument is null
-