Enum ResourceValueFrame.State

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CLOSED
      The resource is closed (or unlocked, etc).
      CLOSED_WITHOUT_OPENED
      The resource is closed without being opened in the first place.
      CREATED
      The resource has been created, but is not open.
      ESCAPED
      The resource escapes the method.
      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.
      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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int type  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private State​(int type)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getType()  
      static ResourceValueFrame.State valueOf​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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.
      • 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 Detail

      • type

        private final int type
    • Constructor Detail

      • State

        private State​(int type)
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getType

        public int getType()