Class AbstractContentAssistVisitor.EndingQueryPositionBuilder

  • All Implemented Interfaces:
    ExpressionVisitor
    Direct Known Subclasses:
    EclipseLinkContentAssistVisitor.EndingQueryPositionBuilder
    Enclosing class:
    AbstractContentAssistVisitor

    protected static class AbstractContentAssistVisitor.EndingQueryPositionBuilder
    extends java.lang.Object
    implements ExpressionVisitor
    This builder populates a QueryPosition by traversing the valid portion of the JPQL query. The position is the end of each Expression.

    For instance, "SELECT e FROM Employee e O WHERE e.name = 'JPQL'", the valid fragment is "SELECT e FROM Employee e", the positions will be:

    • JPQLExpression = 24
    • SelectStatement = 24
    • FromClause = 15
    • IdentificationVariableDeclaration = 10
    • RangeVariableDeclaration = 10
    • IdentificationVariable = 1