Class AbstractExpression

    • Method Detail

      • getIdentifierVersion

        public JPAVersion getIdentifierVersion​(java.lang.String identifier)
        Retrieves the JPA version in which the identifier was first introduced.
        Returns:
        The version in which the identifier was introduced
      • getOffset

        public final int getOffset()
        Returns the position of this Expression within its parent hierarchy.
        Specified by:
        getOffset in interface Expression
        Returns:
        The length of the string representation of what is coming before this object
      • getQueryBNF

        public JPQLQueryBNF getQueryBNF​(java.lang.String queryBNFID)
        Retrieves the BNF object that was registered for the given unique identifier.
        Parameters:
        queryBNFID - The unique identifier of the JPQLQueryBNF to retrieve
        Returns:
        The JPQLQueryBNF representing a section of the grammar
      • populatePosition

        public void populatePosition​(QueryPosition queryPosition,
                                     int position)
        Retrieves the Expression located at the given position using the actual query, which may have extra whitespace.
        Specified by:
        populatePosition in interface Expression
        position - The array has one element and is the position of the Expression to retrieve
      • toActualText

        public java.lang.String toActualText()
        Generates a string representation of this Expression, which needs to include any characters that are considered virtual, i.e. that was parsed when the query is incomplete and is needed for functionality like content assist.
        Specified by:
        toActualText in interface Expression
        Returns:
        The string representation of this Expression
      • toParsedText

        public java.lang.String toParsedText()
        Returns a string representation of this Expression and its children. The expression should contain whitespace even if the beautified version would not have any. For instance, "SELECT e " should be returned where Expression.toParsedText() would return "SELECT e".
        Specified by:
        toParsedText in interface Expression
        Returns:
        The string representation of this Expression
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object