Class GraphParser
java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<GraphNode<?>>
org.hibernate.grammars.graph.GraphLanguageParserBaseVisitor<GraphNode<?>>
org.hibernate.graph.internal.parse.GraphParser
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<GraphNode<?>>
,GraphLanguageParserVisitor<GraphNode<?>>
Unified access to the Antlr parser for Hibernate's "graph language"
-
Constructor Summary
ConstructorsConstructorDescriptionGraphParser
(SessionFactoryImplementor sessionFactory) GraphParser
(EntityNameResolver entityNameResolver) -
Method Summary
Modifier and TypeMethodDescriptionAttributeNodeImplementor
<?, ?, ?> visitAttributeNode
(GraphLanguageParser.AttributeNodeContext attributeNodeContext) Visit a parse tree produced byGraphLanguageParser.attributeNode()
.visitSubGraph
(GraphLanguageParser.SubGraphContext subGraphContext) Visit a parse tree produced byGraphLanguageParser.subGraph()
.Methods inherited from class org.hibernate.grammars.graph.GraphLanguageParserBaseVisitor
visitAttributeList, visitAttributePath, visitAttributeQualifier, visitGraph, visitTypeIndicator
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
GraphParser
-
GraphParser
- See Also:
- API Note:
- It is important that this form only be used after the session-factory is fully initialized, especially the SessionFactoryImplementor.getJpaMetamodel() JPA metamodel}.
-
-
Method Details
-
getGraphStack
-
visitAttributeNode
public AttributeNodeImplementor<?,?, visitAttributeNode?> (GraphLanguageParser.AttributeNodeContext attributeNodeContext) Description copied from class:GraphLanguageParserBaseVisitor
Visit a parse tree produced byGraphLanguageParser.attributeNode()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAttributeNode
in interfaceGraphLanguageParserVisitor<GraphNode<?>>
- Overrides:
visitAttributeNode
in classGraphLanguageParserBaseVisitor<GraphNode<?>>
- Parameters:
attributeNodeContext
- the parse tree- Returns:
- the visitor result
-
visitSubGraph
Description copied from class:GraphLanguageParserBaseVisitor
Visit a parse tree produced byGraphLanguageParser.subGraph()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSubGraph
in interfaceGraphLanguageParserVisitor<GraphNode<?>>
- Overrides:
visitSubGraph
in classGraphLanguageParserBaseVisitor<GraphNode<?>>
- Parameters:
subGraphContext
- the parse tree- Returns:
- the visitor result
-