Package tilda.grammar
Class TildaSQLTreePrinter
- java.lang.Object
-
- tilda.grammar.TildaSQLBaseListener
-
- tilda.grammar.TildaSQLTreePrinter
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener,tilda.grammar.TildaSQLListener
public class TildaSQLTreePrinter extends tilda.grammar.TildaSQLBaseListener
-
-
Field Summary
Fields Modifier and Type Field Description protected org.antlr.v4.runtime.Parser_Parserprotected java.lang.StringBuilder_ParseTreeStrprotected java.util.Map<org.antlr.v4.runtime.RuleContext,java.util.List<java.lang.String>>_Pathprotected static org.apache.logging.log4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description TildaSQLTreePrinter(org.antlr.v4.runtime.Parser parser)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)voidexitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)protected static booleanisLeafNode(org.antlr.v4.runtime.ParserRuleContext ctx)protected static booleanisTerminalNode(org.antlr.v4.runtime.tree.ParseTree node)voidvisitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)voidvisitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)-
Methods inherited from class tilda.grammar.TildaSQLBaseListener
enterArithmetic_expr_base, enterArithmetic_expr_sub, enterArithmetic_op_add, enterArithmetic_op_mul, enterArithmeticExpr, enterArithmeticExprSub, enterArithmeticExprVal, enterBetween_expr, enterBetween_op, enterBin_expr, enterBin_expr_lhs, enterBin_like, enterBin_op, enterBind_parameter, enterBool_expr, enterBool_expr_sub, enterBool_op, enterColumn, enterExpr, enterExpr_sub, enterFunc_expr, enterFunction, enterIsnull_expr, enterIsnull_op, enterNumeric_literal, enterString_literal, enterTimestamp_literal, enterValue_list, enterValueBindParam, enterValueNumericLiteral, enterValueStringLiteral, enterValueTimestampLiteral, enterWhere, exitArithmetic_expr_base, exitArithmetic_expr_sub, exitArithmetic_op_add, exitArithmetic_op_mul, exitArithmeticExpr, exitArithmeticExprSub, exitArithmeticExprVal, exitBetween_expr, exitBetween_op, exitBin_expr, exitBin_expr_lhs, exitBin_like, exitBin_op, exitBind_parameter, exitBool_expr, exitBool_expr_sub, exitBool_op, exitColumn, exitExpr, exitExpr_sub, exitFunc_expr, exitFunction, exitIsnull_expr, exitIsnull_op, exitNumeric_literal, exitString_literal, exitTimestamp_literal, exitValue_list, exitValueBindParam, exitValueNumericLiteral, exitValueStringLiteral, exitValueTimestampLiteral, exitWhere
-
-
-
-
Method Detail
-
isTerminalNode
protected static boolean isTerminalNode(org.antlr.v4.runtime.tree.ParseTree node)
-
isLeafNode
protected static boolean isLeafNode(org.antlr.v4.runtime.ParserRuleContext ctx)
-
visitTerminal
public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
Description copied from class:tilda.grammar.TildaSQLBaseListenerThe default implementation does nothing.
- Specified by:
visitTerminalin interfaceorg.antlr.v4.runtime.tree.ParseTreeListener- Overrides:
visitTerminalin classtilda.grammar.TildaSQLBaseListener
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
Description copied from class:tilda.grammar.TildaSQLBaseListenerThe default implementation does nothing.
- Specified by:
visitErrorNodein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener- Overrides:
visitErrorNodein classtilda.grammar.TildaSQLBaseListener
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
Description copied from class:tilda.grammar.TildaSQLBaseListenerThe default implementation does nothing.
- Specified by:
enterEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener- Overrides:
enterEveryRulein classtilda.grammar.TildaSQLBaseListener
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
Description copied from class:tilda.grammar.TildaSQLBaseListenerThe default implementation does nothing.
- Specified by:
exitEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener- Overrides:
exitEveryRulein classtilda.grammar.TildaSQLBaseListener
-
-