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
_Parser
protected java.lang.StringBuilder
_ParseTreeStr
protected java.util.Map<org.antlr.v4.runtime.RuleContext,java.util.List<java.lang.String>>
_Path
protected static org.apache.logging.log4j.Logger
LOG
-
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 void
enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
void
exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
protected static boolean
isLeafNode(org.antlr.v4.runtime.ParserRuleContext ctx)
protected static boolean
isTerminalNode(org.antlr.v4.runtime.tree.ParseTree node)
void
visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
void
visitTerminal(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.TildaSQLBaseListener
The default implementation does nothing.
- Specified by:
visitTerminal
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
- Overrides:
visitTerminal
in classtilda.grammar.TildaSQLBaseListener
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
Description copied from class:tilda.grammar.TildaSQLBaseListener
The default implementation does nothing.
- Specified by:
visitErrorNode
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
- Overrides:
visitErrorNode
in classtilda.grammar.TildaSQLBaseListener
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
Description copied from class:tilda.grammar.TildaSQLBaseListener
The default implementation does nothing.
- Specified by:
enterEveryRule
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
- Overrides:
enterEveryRule
in classtilda.grammar.TildaSQLBaseListener
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
Description copied from class:tilda.grammar.TildaSQLBaseListener
The default implementation does nothing.
- Specified by:
exitEveryRule
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
- Overrides:
exitEveryRule
in classtilda.grammar.TildaSQLBaseListener
-
-