Package processing.mode.java.preproc
Enum Class PdePreprocessor.Mode
- All Implemented Interfaces:
Serializable,Comparable<PdePreprocessor.Mode>,Constable
- Enclosing class:
- PdePreprocessor
The mode that the sketch uses to run.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSketch using draw, setup, and / or settings where the code is run as if defining the body of a class.Sketch written like typical Java where the code is run such that it defines the enclosing classes itself.Sketch without draw, setup, or settings functions where code is run as if the body of a method without any enclosing types. -
Method Summary
Modifier and TypeMethodDescriptionstatic PdePreprocessor.ModeReturns the enum constant of this class with the specified name.static PdePreprocessor.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STATIC
Sketch without draw, setup, or settings functions where code is run as if the body of a method without any enclosing types. This code will not define its enclosing class or method. -
ACTIVE
Sketch using draw, setup, and / or settings where the code is run as if defining the body of a class. This code will not define its enclosing class, but it will define its enclosing method. -
JAVA
Sketch written like typical Java where the code is run such that it defines the enclosing classes itself.
-
-
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
-