Class MacrosVisitorImpl<T extends AbstractContext<T>>
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>,MacrosVisitor<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MacrosOpeningCounterprotected final Evaluatorprotected final MacroRegistryprotected T -
Constructor Summary
ConstructorsConstructorDescriptionMacrosVisitorImpl(MacroRegistry registry, Evaluator evaluator, T state) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiontoString()Visit a parse tree produced byMacrosParser.macroParams().Visit a parse tree produced byMacrosParser.macrosEnd().Visit a parse tree produced byMacrosParser.macrosStart().Visit a parse tree produced byMacrosParser.quote().Visit a parse tree produced byMacrosParser.slash().Visit a parse tree produced byMacrosParser.text().Methods inherited from class org.qubership.atp.macros.core.parser.antlr4.MacrosBaseVisitor
visitBody, visitEmptyMacros, visitMacroArg, visitMacroParam, visitMacrosMethods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Field Details
-
brackets
-
registry
-
evaluator
-
state
-
-
Constructor Details
-
Method Details
-
visitText
Description copied from class:MacrosBaseVisitorVisit a parse tree produced byMacrosParser.text().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTextin interfaceMacrosVisitor<T extends AbstractContext<T>>- Overrides:
visitTextin classMacrosBaseVisitor<T extends AbstractContext<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQuote
Description copied from class:MacrosBaseVisitorVisit a parse tree produced byMacrosParser.quote().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQuotein interfaceMacrosVisitor<T extends AbstractContext<T>>- Overrides:
visitQuotein classMacrosBaseVisitor<T extends AbstractContext<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSlash
Description copied from class:MacrosBaseVisitorVisit a parse tree produced byMacrosParser.slash().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSlashin interfaceMacrosVisitor<T extends AbstractContext<T>>- Overrides:
visitSlashin classMacrosBaseVisitor<T extends AbstractContext<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMacroParams
Description copied from class:MacrosBaseVisitorVisit a parse tree produced byMacrosParser.macroParams().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMacroParamsin interfaceMacrosVisitor<T extends AbstractContext<T>>- Overrides:
visitMacroParamsin classMacrosBaseVisitor<T extends AbstractContext<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMacrosStart
Description copied from class:MacrosBaseVisitorVisit a parse tree produced byMacrosParser.macrosStart().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMacrosStartin interfaceMacrosVisitor<T extends AbstractContext<T>>- Overrides:
visitMacrosStartin classMacrosBaseVisitor<T extends AbstractContext<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMacrosEnd
Description copied from class:MacrosBaseVisitorVisit a parse tree produced byMacrosParser.macrosEnd().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMacrosEndin interfaceMacrosVisitor<T extends AbstractContext<T>>- Overrides:
visitMacrosEndin classMacrosBaseVisitor<T extends AbstractContext<T>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
toString
-