Package com.igormaznitsa.jcp.directives
Enum AfterDirectiveProcessingBehaviour
- java.lang.Object
-
- java.lang.Enum<AfterDirectiveProcessingBehaviour>
-
- com.igormaznitsa.jcp.directives.AfterDirectiveProcessingBehaviour
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AfterDirectiveProcessingBehaviour>
public enum AfterDirectiveProcessingBehaviour extends java.lang.Enum<AfterDirectiveProcessingBehaviour>
The enumeration contains flags after directive processing behavior
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_PROCESSED
Notify preprocessor that the directive has not been processedPROCESSED
Notify preprocessor that a directive has been processed successfullyREAD_NEXT_LINE
Notify preprocessor that a directive has been processed and need to read the next line immediatelySHOULD_BE_COMMENTED
Notify preprocessor that the line should be commented
-
Constructor Summary
Constructors Modifier Constructor Description private
AfterDirectiveProcessingBehaviour()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AfterDirectiveProcessingBehaviour
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AfterDirectiveProcessingBehaviour[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROCESSED
public static final AfterDirectiveProcessingBehaviour PROCESSED
Notify preprocessor that a directive has been processed successfully
-
READ_NEXT_LINE
public static final AfterDirectiveProcessingBehaviour READ_NEXT_LINE
Notify preprocessor that a directive has been processed and need to read the next line immediately
-
NOT_PROCESSED
public static final AfterDirectiveProcessingBehaviour NOT_PROCESSED
Notify preprocessor that the directive has not been processed
-
SHOULD_BE_COMMENTED
public static final AfterDirectiveProcessingBehaviour SHOULD_BE_COMMENTED
Notify preprocessor that the line should be commented
-
-
Method Detail
-
values
public static AfterDirectiveProcessingBehaviour[] 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 (AfterDirectiveProcessingBehaviour c : AfterDirectiveProcessingBehaviour.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AfterDirectiveProcessingBehaviour 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
-
-