Enum ResourceValueFrame.State

java.lang.Object
java.lang.Enum<ResourceValueFrame.State>
edu.umd.cs.findbugs.ba.ResourceValueFrame.State
All Implemented Interfaces:
Serializable, Comparable<ResourceValueFrame.State>, java.lang.constant.Constable
Enclosing class:
ResourceValueFrame

public static enum ResourceValueFrame.State extends Enum<ResourceValueFrame.State>
  • Enum Constant Details

    • 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.
  • Field Details

    • type

      private final int type
  • Constructor Details

    • State

      private State(int type)
  • Method Details

    • values

      public static ResourceValueFrame.State[] 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

      public static ResourceValueFrame.State valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getType

      public int getType()