Package com.igormaznitsa.jcp.containers
Enum PreprocessingFlag
- All Implemented Interfaces:
Serializable
,Comparable<PreprocessingFlag>
The enumeration contains flags describe inside special preprocessor states
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis flag allows to stop preprocessing immediatelyThis flag shows that //#break has been metThis flag shows that we must comment the next line (one time flag)This flag shows that preprocessing must be ended on the next stringThis flag shows that the current //#if construction in the passive stateThis flag shows that it is allowed to print texts into an output stream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PreprocessingFlag
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 Details
-
TEXT_OUTPUT_DISABLED
This flag shows that it is allowed to print texts into an output stream -
COMMENT_NEXT_LINE
This flag shows that we must comment the next line (one time flag) -
IF_CONDITION_FALSE
This flag shows that the current //#if construction in the passive state -
BREAK_COMMAND
This flag shows that //#break has been met -
END_PROCESSING
This flag shows that preprocessing must be ended on the next string -
ABORT_PROCESSING
This flag allows to stop preprocessing immediately
-
-
Constructor Details
-
PreprocessingFlag
private PreprocessingFlag()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-