Enum Class JpyConfig.Flag

java.lang.Object
java.lang.Enum<JpyConfig.Flag>
io.deephaven.jpy.JpyConfig.Flag
All Implemented Interfaces:
Serializable, Comparable<JpyConfig.Flag>, java.lang.constant.Constable
Enclosing class:
JpyConfig

public static enum JpyConfig.Flag extends Enum<JpyConfig.Flag>
We can't reference the values in {/@link Diag} directly - that would cause {/@link org.jpy.PyLib} to prematurely initialize. We could: 1) Refactor {/@link Diag} so as not to initialize {/@link PyLib} 2) Use compile-time code generation against {/@link Diag} 3) Test to make sure {/@link Flag} and {/@link Diag} are in-sync We are currently doing the #3, see JpyConfigFlagTest
  • Enum Constant Details

    • OFF

      public static final JpyConfig.Flag OFF
      Represents bitset from {/@link Diag#F_OFF}
    • TYPE

      public static final JpyConfig.Flag TYPE
      Represents bitset from {/@link Diag#F_TYPE}
    • METH

      public static final JpyConfig.Flag METH
      Represents bitset from {/@link Diag#F_METH}
    • EXEC

      public static final JpyConfig.Flag EXEC
      Represents bitset from {/@link Diag#F_EXEC}
    • MEM

      public static final JpyConfig.Flag MEM
      Represents bitset from {/@link Diag#F_MEM}
    • JVM

      public static final JpyConfig.Flag JVM
      Represents bitset from {/@link Diag#F_JVM}
    • ERR

      public static final JpyConfig.Flag ERR
      Represents bitset from {/@link Diag#F_ERR}
    • ALL

      public static final JpyConfig.Flag ALL
      Represents bitset from {/@link Diag#F_ALL}
  • Field Details

    • bitset

      public final int bitset
  • Method Details

    • values

      public static JpyConfig.Flag[] 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

      public static JpyConfig.Flag valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getBitset

      public int getBitset()