Package com.igormaznitsa.jcp.containers
Enum PreprocessingFlag
- java.lang.Object
-
- java.lang.Enum<PreprocessingFlag>
-
- com.igormaznitsa.jcp.containers.PreprocessingFlag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PreprocessingFlag>
public enum PreprocessingFlag extends java.lang.Enum<PreprocessingFlag>
The enumeration contains flags describe inside special preprocessor states
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORT_PROCESSING
This flag allows to stop preprocessing immediatelyBREAK_COMMAND
This flag shows that //#break has been metCOMMENT_NEXT_LINE
This flag shows that we must comment the next line (one time flag)END_PROCESSING
This flag shows that preprocessing must be ended on the next stringIF_CONDITION_FALSE
This flag shows that the current //#if construction in the passive stateTEXT_OUTPUT_DISABLED
This flag shows that it is allowed to print texts into an output stream
-
Constructor Summary
Constructors Modifier Constructor Description private
PreprocessingFlag()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PreprocessingFlag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PreprocessingFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
-
-
Method Detail
-
values
public static PreprocessingFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PreprocessingFlag c : PreprocessingFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PreprocessingFlag valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-