Top Fields Constructors Methods
org.hibernate.graph.internal.parse

public Class GraphParser

extends GraphLanguageParserBaseVisitor
Class Inheritance
Imports
org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.grammars.graph.GraphLanguageLexer, .GraphLanguageParser, .GraphLanguageParserBaseVisitor, org.hibernate.graph.InvalidGraphException, org.hibernate.graph.spi.AttributeNodeImplementor, .GraphImplementor, .SubGraphImplementor, org.hibernate.internal.util.StringHelper, org.hibernate.internal.util.collections.Stack, .StandardStack, org.antlr.v4.runtime.CharStreams, .CommonTokenStream

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Stack<AttributeNodeImplementor<J>>
private final Stack<SubGraphGenerator>
private final Stack<GraphImplementor<J>>
private final SessionFactoryImplementor
sessionFactory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Constructor Summary

AccessConstructor and Description
public
GraphParser(SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public static void
parseInto(GraphImplementor<?> targetGraph, String graphString, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Parse the passed graph textual representation into the passed Graph.
public static void
parseInto(GraphImplementor<?> targetGraph, CharSequence graphString, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Parse the passed graph textual representation into the passed Graph.
private AttributeNodeImplementor<J>
private PathQualifierType
public AttributeNodeImplementor<J>
public SubGraphImplementor<J>
Inherited from org.hibernate.grammars.graph.GraphLanguageParserBaseVisitor:
visitAttributeListvisitAttributePathvisitAttributeQualifiervisitGraphvisitSubType

Field Detail

attributeNodeStackback to summary
private final Stack<AttributeNodeImplementor<J>> attributeNodeStack
graphSourceStackback to summary
private final Stack<SubGraphGenerator> graphSourceStack
graphStackback to summary
private final Stack<GraphImplementor<J>> graphStack
sessionFactoryback to summary
private final SessionFactoryImplementor sessionFactory

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Constructor Detail

GraphParserback to summary
public GraphParser(SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

parseIntoback to summary
public static void parseInto(GraphImplementor<?> targetGraph, String graphString, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Parse the passed graph textual representation into the passed Graph.

parseIntoback to summary
public static void parseInto(GraphImplementor<?> targetGraph, CharSequence graphString, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Parse the passed graph textual representation into the passed Graph.

resolveAttributeNodeback to summary
private AttributeNodeImplementor<J> resolveAttributeNode(String attributeName)
resolvePathQualifierback to summary
private PathQualifierType resolvePathQualifier(String qualifier)
visitAttributeNodeback to summary
public AttributeNodeImplementor<J> visitAttributeNode(GraphLanguageParser.AttributeNodeContext ctx)

Overrides org.hibernate.grammars.graph.GraphLanguageParserBaseVisitor.visitAttributeNode.

Implements org.hibernate.grammars.graph.GraphLanguageParserVisitor.visitAttributeNode.

Doc from org.hibernate.grammars.graph.GraphLanguageParserBaseVisitor.visitAttributeNode.

Visit a parse tree produced by GraphLanguageParser#attributeNode.

The default implementation returns the result of calling visitChildren on ctx.

Parameters
ctx:GraphLanguageParser.AttributeNodeContext

Doc from org.hibernate.grammars.graph.GraphLanguageParserVisitor.visitAttributeNode.

the parse tree

Returns:AttributeNodeImplementor<J>

Doc from org.hibernate.grammars.graph.GraphLanguageParserVisitor.visitAttributeNode.

the visitor result

Annotations
@Override
visitSubGraphback to summary
public SubGraphImplementor<J> visitSubGraph(GraphLanguageParser.SubGraphContext ctx)

Overrides org.hibernate.grammars.graph.GraphLanguageParserBaseVisitor.visitSubGraph.

Implements org.hibernate.grammars.graph.GraphLanguageParserVisitor.visitSubGraph.

Doc from org.hibernate.grammars.graph.GraphLanguageParserBaseVisitor.visitSubGraph.

Visit a parse tree produced by GraphLanguageParser#subGraph.

The default implementation returns the result of calling visitChildren on ctx.

Parameters
ctx:GraphLanguageParser.SubGraphContext

Doc from org.hibernate.grammars.graph.GraphLanguageParserVisitor.visitSubGraph.

the parse tree

Returns:SubGraphImplementor<J>

Doc from org.hibernate.grammars.graph.GraphLanguageParserVisitor.visitSubGraph.

the visitor result

Annotations
@Override