Enum PreprocessingFlag

java.lang.Object
java.lang.Enum<PreprocessingFlag>
com.igormaznitsa.jcp.containers.PreprocessingFlag
All Implemented Interfaces:
Serializable, Comparable<PreprocessingFlag>

public enum PreprocessingFlag extends Enum<PreprocessingFlag>
The enumeration contains flags describe inside special preprocessor states
  • Enum Constant Details

    • TEXT_OUTPUT_DISABLED

      public static final PreprocessingFlag TEXT_OUTPUT_DISABLED
      This flag shows that it is allowed to print texts into an output stream
    • COMMENT_NEXT_LINE

      public static final PreprocessingFlag COMMENT_NEXT_LINE
      This flag shows that we must comment the next line (one time flag)
    • IF_CONDITION_FALSE

      public static final PreprocessingFlag IF_CONDITION_FALSE
      This flag shows that the current //#if construction in the passive state
    • BREAK_COMMAND

      public static final PreprocessingFlag BREAK_COMMAND
      This flag shows that //#break has been met
    • END_PROCESSING

      public static final PreprocessingFlag END_PROCESSING
      This flag shows that preprocessing must be ended on the next string
    • ABORT_PROCESSING

      public static final PreprocessingFlag ABORT_PROCESSING
      This flag allows to stop preprocessing immediately
  • Constructor Details

    • PreprocessingFlag

      private PreprocessingFlag()
  • Method Details

    • values

      public static PreprocessingFlag[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PreprocessingFlag valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null