Enum Class PdePreprocessor.Mode

java.lang.Object
java.lang.Enum<PdePreprocessor.Mode>
processing.mode.java.preproc.PdePreprocessor.Mode
All Implemented Interfaces:
Serializable, Comparable<PdePreprocessor.Mode>, Constable
Enclosing class:
PdePreprocessor

public static enum PdePreprocessor.Mode extends Enum<PdePreprocessor.Mode>
The mode that the sketch uses to run.
  • Enum Constant Details

    • STATIC

      public static final PdePreprocessor.Mode 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

      public static final PdePreprocessor.Mode 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

      public static final PdePreprocessor.Mode JAVA
      Sketch written like typical Java where the code is run such that it defines the enclosing classes itself.
  • Method Details

    • values

      public static PdePreprocessor.Mode[] 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 PdePreprocessor.Mode 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