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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.Visit a parse tree produced byGraphLanguageParser.attributeNode()
.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
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
-
-
Method Details
-
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
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
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
-