Package edu.umd.cs.findbugs.ba
Enum ResourceValueFrame.State
- java.lang.Object
-
- java.lang.Enum<ResourceValueFrame.State>
-
- edu.umd.cs.findbugs.ba.ResourceValueFrame.State
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ResourceValueFrame.State>
- Enclosing class:
- ResourceValueFrame
public static enum ResourceValueFrame.State extends java.lang.Enum<ResourceValueFrame.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSEDThe resource is closed (or unlocked, etc).CLOSED_WITHOUT_OPENEDThe resource is closed without being opened in the first place.CREATEDThe resource has been created, but is not open.ESCAPEDThe resource escapes the method.NONEXISTENTThe resource doesn't exist.NOT_OPEN_ON_EXCEPTION_PATHThe resource is NOT open (or locked, etc) on paths that include exception control flow.OPENThe resource is open (or locked, etc) on paths that include only normal control flow.OPEN_ON_EXCEPTION_PATHThe resource is open (or locked, etc) on paths that include exception control flow.
-
Field Summary
Fields Modifier and Type Field Description private inttype
-
Constructor Summary
Constructors Modifier Constructor Description privateState(int type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetType()static ResourceValueFrame.StatevalueOf(java.lang.String name)Returns 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 Detail
-
ESCAPED
public static final ResourceValueFrame.State ESCAPED
The resource escapes the method.
-
OPEN
public static final ResourceValueFrame.State OPEN
The resource is open (or locked, etc) on paths that include only normal control flow.
-
OPEN_ON_EXCEPTION_PATH
public static final ResourceValueFrame.State OPEN_ON_EXCEPTION_PATH
The resource is open (or locked, etc) on paths that include exception control flow.
-
CLOSED_WITHOUT_OPENED
public static final ResourceValueFrame.State CLOSED_WITHOUT_OPENED
The resource is closed without being opened in the first place.
-
CLOSED
public static final ResourceValueFrame.State CLOSED
The resource is closed (or unlocked, etc).
-
CREATED
public static final ResourceValueFrame.State CREATED
The resource has been created, but is not open.
-
NONEXISTENT
public static final ResourceValueFrame.State NONEXISTENT
The resource doesn't exist.
-
NOT_OPEN_ON_EXCEPTION_PATH
public static final ResourceValueFrame.State NOT_OPEN_ON_EXCEPTION_PATH
The resource is NOT open (or locked, etc) on paths that include exception control flow.
-
-
Method Detail
-
values
public static ResourceValueFrame.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResourceValueFrame.State c : ResourceValueFrame.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceValueFrame.State valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getType
public int getType()
-
-