Package edu.umd.cs.findbugs.ba
Enum ResourceValueFrame.State
- All Implemented Interfaces:
Serializable,Comparable<ResourceValueFrame.State>,java.lang.constant.Constable
- Enclosing class:
ResourceValueFrame
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe resource is closed (or unlocked, etc).The resource is closed without being opened in the first place.The resource has been created, but is not open.The resource escapes the method.The resource doesn't exist.The resource is NOT open (or locked, etc) on paths that include exception control flow.The resource is open (or locked, etc) on paths that include only normal control flow.The resource is open (or locked, etc) on paths that include exception control flow. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetType()static ResourceValueFrame.StateReturns the enum constant of this type with the specified name.static ResourceValueFrame.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ESCAPED
The resource escapes the method. -
OPEN
The resource is open (or locked, etc) on paths that include only normal control flow. -
OPEN_ON_EXCEPTION_PATH
The resource is open (or locked, etc) on paths that include exception control flow. -
CLOSED_WITHOUT_OPENED
The resource is closed without being opened in the first place. -
CLOSED
The resource is closed (or unlocked, etc). -
CREATED
The resource has been created, but is not open. -
NONEXISTENT
The resource doesn't exist. -
NOT_OPEN_ON_EXCEPTION_PATH
The resource is NOT open (or locked, etc) on paths that include exception control flow.
-
-
Field Details
-
type
private final int type
-
-
Constructor Details
-
State
private State(int type)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getType
public int getType()
-