Class GraphParser
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- org.hibernate.grammars.graph.GraphLanguageParserBaseVisitor
-
- org.hibernate.graph.internal.parse.GraphParser
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor
,GraphLanguageParserVisitor
public class GraphParser extends GraphLanguageParserBaseVisitor
-
-
Constructor Summary
Constructors Constructor Description GraphParser(SessionFactoryImplementor sessionFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
parseInto(GraphImplementor<?> targetGraph, CharSequence graphString, SessionFactoryImplementor sessionFactory)
Parse the passed graph textual representation into the passed Graph.static void
parseInto(GraphImplementor<?> targetGraph, String graphString, SessionFactoryImplementor sessionFactory)
Parse the passed graph textual representation into the passed Graph.AttributeNodeImplementor
visitAttributeNode(GraphLanguageParser.AttributeNodeContext ctx)
Visit a parse tree produced byGraphLanguageParser.attributeNode()
.SubGraphImplementor
visitSubGraph(GraphLanguageParser.SubGraphContext ctx)
Visit a parse tree produced byGraphLanguageParser.subGraph()
.-
Methods inherited from class org.hibernate.grammars.graph.GraphLanguageParserBaseVisitor
visitAttributeList, visitAttributePath, visitAttributeQualifier, visitGraph, visitSubType
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Constructor Detail
-
GraphParser
public GraphParser(SessionFactoryImplementor sessionFactory)
-
-
Method Detail
-
parseInto
public static void parseInto(GraphImplementor<?> targetGraph, String graphString, SessionFactoryImplementor sessionFactory)
Parse the passed graph textual representation into the passed Graph.
-
parseInto
public static void parseInto(GraphImplementor<?> targetGraph, CharSequence graphString, SessionFactoryImplementor sessionFactory)
Parse the passed graph textual representation into the passed Graph.
-
visitAttributeNode
public AttributeNodeImplementor visitAttributeNode(GraphLanguageParser.AttributeNodeContext ctx)
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
- Overrides:
visitAttributeNode
in classGraphLanguageParserBaseVisitor
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSubGraph
public SubGraphImplementor visitSubGraph(GraphLanguageParser.SubGraphContext ctx)
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
- Overrides:
visitSubGraph
in classGraphLanguageParserBaseVisitor
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
-