Package com.igormaznitsa.jcp.directives
Class WarningDirectiveHandler
java.lang.Object
com.igormaznitsa.jcp.directives.AbstractDirectiveHandler
com.igormaznitsa.jcp.directives.ErrorDirectiveHandler
com.igormaznitsa.jcp.directives.WarningDirectiveHandler
The class implements //#warning directive handler
-
Field Summary
Fields inherited from class com.igormaznitsa.jcp.directives.AbstractDirectiveHandler
DIRECTIVE_PREFIX, DIRECTIVES, GLOBAL_DIRECTIVES, ONE_LINE_COMMENT, PREFIX_FOR_KEEPING_LINES, PREFIX_FOR_KEEPING_LINES_PROCESSED_DIRECTIVES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name of the directive without prefixGet the directive reference, it will be printed for a help requestprotected void
process
(PreprocessorContext context, String message) Methods inherited from class com.igormaznitsa.jcp.directives.ErrorDirectiveHandler
execute, getArgumentType
Methods inherited from class com.igormaznitsa.jcp.directives.AbstractDirectiveHandler
executeOnlyWhenExecutionAllowed, getFullName, isDeprecated, isGlobalPhaseAllowed, isPreprocessingPhaseAllowed
-
Constructor Details
-
WarningDirectiveHandler
public WarningDirectiveHandler()
-
-
Method Details
-
getName
Description copied from class:AbstractDirectiveHandler
Get the name of the directive without prefix- Overrides:
getName
in classErrorDirectiveHandler
- Returns:
- the directive name, must not be null
-
getReference
Description copied from class:AbstractDirectiveHandler
Get the directive reference, it will be printed for a help request- Overrides:
getReference
in classErrorDirectiveHandler
- Returns:
- the directive reference as a String, must not be null
-
process
- Overrides:
process
in classErrorDirectiveHandler
-