Class MacroContext
java.lang.Object
org.qubership.atp.dataset.macros.processor.MacroContextBase
org.qubership.atp.dataset.macros.processor.MacroContext
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArgsParserprotected booleanprotected Macrosprotected StringBuilderprotected final AliasWrapperServiceFields inherited from class org.qubership.atp.dataset.macros.processor.MacroContextBase
strategy -
Constructor Summary
ConstructorsConstructorDescriptionMacroContext(MacroContext parent, String macro) For nested.MacroContext(AliasWrapperService wrapperService, EvaluationContext parent, MacroProcessorImpl processor, MacroRegistry registry, EvaluationContext evaluationContext) For rootparent == nullor refsparent != null. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidevaluate()Args are filled up now.voidinitialize(String macro) Initializes with macro.protected voidpushArguments(String args) Invoked only on initialized context.protected voidInvoked only on uninitialized context.toString()Methods inherited from class org.qubership.atp.dataset.macros.processor.MacroContextBase
uninitialize
-
Field Details
-
wrapperService
-
doCache
protected boolean doCache -
macros
-
args
-
text
-
-
Constructor Details
-
MacroContext
public MacroContext(@Nonnull AliasWrapperService wrapperService, @Nullable EvaluationContext parent, @Nonnull MacroProcessorImpl processor, @Nonnull MacroRegistry registry, EvaluationContext evaluationContext) For rootparent == nullor refsparent != null. -
MacroContext
For nested.
-
-
Method Details
-
initialize
Description copied from class:MacroContextBaseInitializes with macro. Should clear args in case it was uninitialized previously.- Overrides:
initializein classMacroContextBase
-
pushArguments
Description copied from class:MacroContextBaseInvoked only on initialized context.- Specified by:
pushArgumentsin classMacroContextBase
-
pushText
Description copied from class:MacroContextBaseInvoked only on uninitialized context.- Specified by:
pushTextin classMacroContextBase
-
getProcessor
- Specified by:
getProcessorin classMacroContextBase
-
evaluate
Description copied from class:MacroContextBaseArgs are filled up now. Result of evaluation should be pushed into state text.- Specified by:
evaluatein classMacroContextBase- Throws:
CtxEvalException
-
beforeReevaluation
protected void beforeReevaluation() -
toString
-