Uses of Class
org.eclipse.persistence.jpa.jpql.parser.QueryPosition
Package
Description
This is the core of Hermes, this package contains the classes that can parse a JPQL query.
-
Uses of QueryPosition in org.eclipse.persistence.jpa.jpql.parser
Modifier and TypeMethodDescriptionJPQLExpression.buildPosition
(String actualQuery, int position) Creates a map of the position of the cursor within eachExpression
of the parsed tree.Modifier and TypeMethodDescriptionvoid
AbstractExpression.populatePosition
(QueryPosition queryPosition, int position) void
DefaultStringExpression.populatePosition
(QueryPosition queryPosition, int position) void
Expression.populatePosition
(QueryPosition queryPosition, int position) Retrieves theExpression
located at the given position using the actual query, which may have extra whitespace. -
Uses of QueryPosition in org.eclipse.persistence.jpa.jpql.tools
Modifier and TypeFieldDescriptionAbstractContentAssistVisitor.EndingQueryPositionBuilder.queryPosition
ThisQueryPosition
has the position of eachExpression
within the valid fragment of the JPQL query.protected QueryPosition
AbstractContentAssistVisitor.queryPosition
Contains the position of the cursor within the parsedExpression
from the root node up to the deepest leaf node.Modifier and TypeMethodDescriptionprotected QueryPosition
AbstractContentAssistVisitor.buildEndingPositionFromInvalidExpression
(Expression invalidExpression, Expression startingPointExpression, boolean[] virtualSpace) Creates a newQueryPosition
containing the corrected positions starting at the givenExpression
and traversing the children at is always at the right side of the tree.AbstractContentAssistVisitor.EndingQueryPositionBuilder.getQueryPosition()
Returns the newQueryPosition
that was created.