public class GlobalElseDirectiveHandler extends AbstractDirectiveHandler
DIRECTIVE_PREFIX, DIRECTIVES, GLOBAL_DIRECTIVES, ONE_LINE_COMMENT, PREFIX_FOR_KEEPING_LINES, PREFIX_FOR_KEEPING_LINES_PROCESSED_DIRECTIVES| Constructor and Description |
|---|
GlobalElseDirectiveHandler() |
| Modifier and Type | Method and Description |
|---|---|
AfterDirectiveProcessingBehaviour |
execute(String string,
PreprocessorContext context)
Execute directive
|
boolean |
executeOnlyWhenExecutionAllowed()
Shows that the directive can be executed only when the preprocessing n
active state i.e.
|
String |
getName()
Get the name of the directive without prefix
|
String |
getReference()
Get the directive reference, it will be printed for a help request
|
boolean |
isGlobalPhaseAllowed()
Shows that the directive can be executed during a global preprocessing
phase
|
boolean |
isPreprocessingPhaseAllowed()
Shows that the directive can be executed during the second preprocessing
phase
|
getArgumentType, getFullName, isDeprecatedpublic String getName()
AbstractDirectiveHandlergetName in class AbstractDirectiveHandlerpublic String getReference()
AbstractDirectiveHandlergetReference in class AbstractDirectiveHandlerpublic boolean isGlobalPhaseAllowed()
AbstractDirectiveHandlerisGlobalPhaseAllowed in class AbstractDirectiveHandlerpublic boolean isPreprocessingPhaseAllowed()
AbstractDirectiveHandlerisPreprocessingPhaseAllowed in class AbstractDirectiveHandlerpublic AfterDirectiveProcessingBehaviour execute(String string, PreprocessorContext context)
AbstractDirectiveHandlerexecute in class AbstractDirectiveHandlerstring - the tail of the string where the directive has been met, must not be null but can be emptycontext - the preprocessor context, it can be nullpublic boolean executeOnlyWhenExecutionAllowed()
AbstractDirectiveHandlerexecuteOnlyWhenExecutionAllowed in class AbstractDirectiveHandlerCopyright © 2011–2019 Igor Maznitsa. All rights reserved.