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 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.AttributeNodeImplementorvisitAttributeNode(GraphLanguageParser.AttributeNodeContext ctx)Visit a parse tree produced byGraphLanguageParser.attributeNode().SubGraphImplementorvisitSubGraph(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: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
public SubGraphImplementor visitSubGraph(GraphLanguageParser.SubGraphContext ctx)
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
-
-