Package com.igormaznitsa.jcp.directives
Class DefinelDirectiveHandler
- java.lang.Object
-
- com.igormaznitsa.jcp.directives.AbstractDirectiveHandler
-
- com.igormaznitsa.jcp.directives.DefineDirectiveHandler
-
- com.igormaznitsa.jcp.directives.DefinelDirectiveHandler
-
public class DefinelDirectiveHandler extends DefineDirectiveHandler
The class implements the //#definel 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 Constructor Description DefinelDirectiveHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Get the name of the directive without prefixjava.lang.String
getReference()
Get the directive reference, it will be printed for a help requestprotected void
process(PreprocessorContext context, java.lang.String varName, Value value, boolean exists)
-
Methods inherited from class com.igormaznitsa.jcp.directives.DefineDirectiveHandler
execute, getArgumentType
-
Methods inherited from class com.igormaznitsa.jcp.directives.AbstractDirectiveHandler
executeOnlyWhenExecutionAllowed, getFullName, isDeprecated, isGlobalPhaseAllowed, isPreprocessingPhaseAllowed
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:AbstractDirectiveHandler
Get the name of the directive without prefix- Overrides:
getName
in classDefineDirectiveHandler
- Returns:
- the directive name, must not be null
-
getReference
public java.lang.String getReference()
Description copied from class:AbstractDirectiveHandler
Get the directive reference, it will be printed for a help request- Overrides:
getReference
in classDefineDirectiveHandler
- Returns:
- the directive reference as a String, must not be null
-
process
protected void process(PreprocessorContext context, java.lang.String varName, Value value, boolean exists)
- Overrides:
process
in classDefineDirectiveHandler
-
-