Package com.igormaznitsa.jcp.directives
Class CommentNextLineDirectiveHandler
java.lang.Object
com.igormaznitsa.jcp.directives.AbstractDirectiveHandler
com.igormaznitsa.jcp.directives.CommentNextLineDirectiveHandler
The class implements the //#// 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 TypeMethodDescriptionexecute(String string, PreprocessorContext context) Execute directivegetName()Get the name of the directive without prefixGet the directive reference, it will be printed for a help requestMethods inherited from class com.igormaznitsa.jcp.directives.AbstractDirectiveHandler
executeOnlyWhenExecutionAllowed, getArgumentType, getFullName, isDeprecated, isGlobalPhaseAllowed, isPreprocessingPhaseAllowed
-
Constructor Details
-
CommentNextLineDirectiveHandler
public CommentNextLineDirectiveHandler()
-
-
Method Details
-
getName
Description copied from class:AbstractDirectiveHandlerGet the name of the directive without prefix- Specified by:
getNamein classAbstractDirectiveHandler- Returns:
- the directive name, must not be null
-
getReference
Description copied from class:AbstractDirectiveHandlerGet the directive reference, it will be printed for a help request- Specified by:
getReferencein classAbstractDirectiveHandler- Returns:
- the directive reference as a String, must not be null
-
execute
Description copied from class:AbstractDirectiveHandlerExecute directive- Specified by:
executein classAbstractDirectiveHandler- Parameters:
string- the tail of the string where the directive has been met, must not be null but can be emptycontext- the preprocessor context- Returns:
- the needed preprocessor behavior, must not be null
-