Package io.deephaven.jpy
Enum Class JpyConfig.Flag
- All Implemented Interfaces:
Serializable
,Comparable<JpyConfig.Flag>
,java.lang.constant.Constable
- Enclosing class:
- JpyConfig
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresents bitset from {/@link Diag#F_ALL}Represents bitset from {/@link Diag#F_ERR}Represents bitset from {/@link Diag#F_EXEC}Represents bitset from {/@link Diag#F_JVM}Represents bitset from {/@link Diag#F_MEM}Represents bitset from {/@link Diag#F_METH}Represents bitset from {/@link Diag#F_OFF}Represents bitset from {/@link Diag#F_TYPE} -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
static JpyConfig.Flag
Returns the enum constant of this class with the specified name.static JpyConfig.Flag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFF
Represents bitset from {/@link Diag#F_OFF} -
TYPE
Represents bitset from {/@link Diag#F_TYPE} -
METH
Represents bitset from {/@link Diag#F_METH} -
EXEC
Represents bitset from {/@link Diag#F_EXEC} -
MEM
Represents bitset from {/@link Diag#F_MEM} -
JVM
Represents bitset from {/@link Diag#F_JVM} -
ERR
Represents bitset from {/@link Diag#F_ERR} -
ALL
Represents bitset from {/@link Diag#F_ALL}
-
-
Field Details
-
bitset
public final int bitset
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getBitset
public int getBitset()
-