Uses of Class
org.eclipse.persistence.jpa.jpql.parser.QueryPosition
Packages that use 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
Methods in org.eclipse.persistence.jpa.jpql.parser that return QueryPositionModifier and TypeMethodDescriptionJPQLExpression.buildPosition
(String actualQuery, int position) Creates a map of the position of the cursor within eachExpression
of the parsed tree.Methods in org.eclipse.persistence.jpa.jpql.parser with parameters of type QueryPositionModifier 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
Fields in org.eclipse.persistence.jpa.jpql.tools declared as QueryPositionModifier 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.Methods in org.eclipse.persistence.jpa.jpql.tools that return QueryPositionModifier 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.