Package org.gnome.glib
Enum Class TestSubprocessFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<TestSubprocessFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum TestSubprocessFlags
extends Enum<TestSubprocessFlags>
implements Enumeration
Flags to pass to g_test_trap_subprocess() to control input and output.
Note that in contrast with g_test_trap_fork(), the default is to not show stdout and stderr.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDefault behaviour.If this flag is given, the child process will inherit the parent's stderr.If this flag is given, the child process will inherit the parent's stdin.If this flag is given, the child process will inherit the parent's stdout. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the numeric value of this enumstatic TestSubprocessFlags
of
(int value) Create a new TestSubprocessFlags for the provided valuestatic TestSubprocessFlags
Returns the enum constant of this class with the specified name.static TestSubprocessFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default behaviour. Since: 2.74 -
INHERIT_STDIN
If this flag is given, the child process will inherit the parent's stdin. Otherwise, the child's stdin is redirected to/dev/null
. -
INHERIT_STDOUT
If this flag is given, the child process will inherit the parent's stdout. Otherwise, the child's stdout will not be visible, but it will be captured to allow later tests with g_test_trap_assert_stdout(). -
INHERIT_STDERR
If this flag is given, the child process will inherit the parent's stderr. Otherwise, the child's stderr will not be visible, but it will be captured to allow later tests with g_test_trap_assert_stderr().
-
-
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
-
of
Create a new TestSubprocessFlags for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-