Class ParseTreeVisitor
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- org.hibernate.grammars.ordering.OrderingParserBaseVisitor<Object>
-
- org.hibernate.metamodel.mapping.ordering.ast.ParseTreeVisitor
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>
,OrderingParserVisitor<Object>
public class ParseTreeVisitor extends OrderingParserBaseVisitor<Object>
-
-
Constructor Summary
Constructors Constructor Description ParseTreeVisitor(PluralAttributeMapping pluralAttributeMapping, TranslationContext translationContext)
-
Method Summary
-
Methods inherited from class org.hibernate.grammars.ordering.OrderingParserBaseVisitor
visitDirection, visitFunctionArguments, visitNullsPrecedence, visitPackagedFunction, visitSimpleFunction
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode
-
-
-
-
Constructor Detail
-
ParseTreeVisitor
public ParseTreeVisitor(PluralAttributeMapping pluralAttributeMapping, TranslationContext translationContext)
-
-
Method Detail
-
visitOrderByFragment
public List<OrderingSpecification> visitOrderByFragment(OrderingParser.OrderByFragmentContext ctx)
Description copied from class:OrderingParserBaseVisitor
Visit a parse tree produced byOrderingParser.orderByFragment()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitOrderByFragment
in interfaceOrderingParserVisitor<Object>
- Overrides:
visitOrderByFragment
in classOrderingParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSortSpecification
public OrderingSpecification visitSortSpecification(OrderingParser.SortSpecificationContext parsedSpec)
Description copied from class:OrderingParserBaseVisitor
Visit a parse tree produced byOrderingParser.sortSpecification()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSortSpecification
in interfaceOrderingParserVisitor<Object>
- Overrides:
visitSortSpecification
in classOrderingParserBaseVisitor<Object>
- Parameters:
parsedSpec
- the parse tree- Returns:
- the visitor result
-
visitFunctionExpression
public OrderingExpression visitFunctionExpression(OrderingParser.FunctionExpressionContext ctx)
Description copied from class:OrderingParserBaseVisitor
Visit a parse tree produced by theFunctionExpression
labeled alternative inOrderingParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFunctionExpression
in interfaceOrderingParserVisitor<Object>
- Overrides:
visitFunctionExpression
in classOrderingParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIdentifierExpression
public OrderingExpression visitIdentifierExpression(OrderingParser.IdentifierExpressionContext ctx)
Description copied from class:OrderingParserBaseVisitor
Visit a parse tree produced by theIdentifierExpression
labeled alternative inOrderingParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIdentifierExpression
in interfaceOrderingParserVisitor<Object>
- Overrides:
visitIdentifierExpression
in classOrderingParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDotIdentifierExpression
public OrderingExpression visitDotIdentifierExpression(OrderingParser.DotIdentifierExpressionContext ctx)
Description copied from class:OrderingParserBaseVisitor
Visit a parse tree produced by theDotIdentifierExpression
labeled alternative inOrderingParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDotIdentifierExpression
in interfaceOrderingParserVisitor<Object>
- Overrides:
visitDotIdentifierExpression
in classOrderingParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDotIdentifier
public OrderingExpression visitDotIdentifier(OrderingParser.DotIdentifierContext ctx)
Description copied from class:OrderingParserBaseVisitor
Visit a parse tree produced byOrderingParser.dotIdentifier()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDotIdentifier
in interfaceOrderingParserVisitor<Object>
- Overrides:
visitDotIdentifier
in classOrderingParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIdentifier
public OrderingExpression visitIdentifier(OrderingParser.IdentifierContext ctx)
Description copied from class:OrderingParserBaseVisitor
Visit a parse tree produced byOrderingParser.identifier()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIdentifier
in interfaceOrderingParserVisitor<Object>
- Overrides:
visitIdentifier
in classOrderingParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFunction
public FunctionExpression visitFunction(OrderingParser.FunctionContext ctx)
Description copied from class:OrderingParserBaseVisitor
Visit a parse tree produced byOrderingParser.function()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFunction
in interfaceOrderingParserVisitor<Object>
- Overrides:
visitFunction
in classOrderingParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFunctionArgument
public OrderingExpression visitFunctionArgument(OrderingParser.FunctionArgumentContext ctx)
Description copied from class:OrderingParserBaseVisitor
Visit a parse tree produced byOrderingParser.functionArgument()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFunctionArgument
in interfaceOrderingParserVisitor<Object>
- Overrides:
visitFunctionArgument
in classOrderingParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLiteral
public OrderingExpression visitLiteral(OrderingParser.LiteralContext ctx)
Description copied from class:OrderingParserBaseVisitor
Visit a parse tree produced byOrderingParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLiteral
in interfaceOrderingParserVisitor<Object>
- Overrides:
visitLiteral
in classOrderingParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCollationSpecification
public String visitCollationSpecification(OrderingParser.CollationSpecificationContext ctx)
Description copied from class:OrderingParserBaseVisitor
Visit a parse tree produced byOrderingParser.collationSpecification()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCollationSpecification
in interfaceOrderingParserVisitor<Object>
- Overrides:
visitCollationSpecification
in classOrderingParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
-