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
- Author:
- Steve Ebersole
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidparseInto(GraphImplementor<?> targetGraph, CharSequence graphString, SessionFactoryImplementor sessionFactory) Parse the passed graph textual representation into the passed Graph.static voidparseInto(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, visitSubTypeMethods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:GraphLanguageParserBaseVisitorVisit 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:
visitAttributeNodein interfaceGraphLanguageParserVisitor- Overrides:
visitAttributeNodein classGraphLanguageParserBaseVisitor- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSubGraph
Description copied from class:GraphLanguageParserBaseVisitorVisit 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:
visitSubGraphin interfaceGraphLanguageParserVisitor- Overrides:
visitSubGraphin classGraphLanguageParserBaseVisitor- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-