Enum Class MustCallConsistencyAnalyzer.MethodExitKind
java.lang.Object
java.lang.Enum<MustCallConsistencyAnalyzer.MethodExitKind>
org.checkerframework.checker.resourceleak.MustCallConsistencyAnalyzer.MethodExitKind
- All Implemented Interfaces:
Serializable
,Comparable<MustCallConsistencyAnalyzer.MethodExitKind>
,Constable
- Enclosing class:
MustCallConsistencyAnalyzer
public static enum MustCallConsistencyAnalyzer.MethodExitKind
extends Enum<MustCallConsistencyAnalyzer.MethodExitKind>
A description for how a method might exit.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe method exits by throwing an exception.The method exits normally by returning. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set
<MustCallConsistencyAnalyzer.MethodExitKind> An immutable set containing all possible ways for a method to exit.static final Set
<MustCallConsistencyAnalyzer.MethodExitKind> An immutable set containing onlyNORMAL_RETURN
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL_RETURN
The method exits normally by returning. -
EXCEPTIONAL_EXIT
The method exits by throwing an exception.
-
-
Field Details
-
ONLY_NORMAL_RETURN
An immutable set containing onlyNORMAL_RETURN
. -
ALL
An immutable set containing all possible ways for a method to exit.
-
-
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
-