Enum Class Feature

java.lang.Object
java.lang.Enum<Feature>
io.github.douira.glsl_preprocessor.Feature
All Implemented Interfaces:
Serializable, Comparable<Feature>, Constable

public enum Feature extends Enum<Feature>
Features of the Preprocessor, which may be enabled or disabled.
  • Enum Constant Details

    • DIGRAPHS

      public static final Feature DIGRAPHS
      Supports ANSI digraphs.
    • TRIGRAPHS

      public static final Feature TRIGRAPHS
      Supports ANSI trigraphs.
    • LINEMARKERS

      public static final Feature LINEMARKERS
      Outputs linemarker tokens.
    • CSYNTAX

      public static final Feature CSYNTAX
      Reports tokens of type INVALID as errors.
    • KEEPCOMMENTS

      public static final Feature KEEPCOMMENTS
      Preserves comments in the lexed output. Like cpp -C
    • KEEPALLCOMMENTS

      public static final Feature KEEPALLCOMMENTS
      Preserves comments in the lexed output, even when inactive.
    • DEBUG

      public static final Feature DEBUG
      enable debug messages
    • INCLUDENEXT

      public static final Feature INCLUDENEXT
    • PRAGMA_ONCE

      public static final Feature PRAGMA_ONCE
      ??
    • GLSL_PASSTHROUGH

      public static final Feature GLSL_PASSTHROUGH
      GLSL support
    • GLSL_CUSTOM_PASSTHROUGH

      public static final Feature GLSL_CUSTOM_PASSTHROUGH
    • ARBITRARY_PRAGMAS

      public static final Feature ARBITRARY_PRAGMAS
      arbitrary pragmas
    • CUSTOM_DIRECTIVE

      public static final Feature CUSTOM_DIRECTIVE
      #custom directive
  • Method Details

    • values

      public static Feature[] 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 Feature 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