FromClause, SimpleFromClause
| Modifier and Type | Field and Description |
|---|---|
| private AbstractExpression | asOfClause
The |
| private AbstractExpression | declaration
The declaration portion of this FROM clause. |
| private boolean | hasSpace
Determines whether a whitespace was parsed after the identifier FROM. |
| private boolean | hasSpaceAfterHierarchicalQueryClause
Determines whether there is a whitespace after the hierarchical query clause. |
| private boolean | hasSpaceDeclaration
Determines whether there is a whitespace after the declaration and either the hierarchical
query clause or the |
| private AbstractExpression | hierarchicalQueryClause
The hierarchical query clause, which holds onto the |
| private String | identifier
The actual identifier found in the string representation of the JPQL query. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractFromClause(AbstractExpression
The parent of this expression parent)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | acceptChildren(ExpressionVisitor
The visitor)visitor to visit the children of this object.Implements org. Expression.
|
| protected void | addChildrenTo(Collection<Expression>
The collection used to store the children children)Overrides org. AbstractExpression to the given collection.
|
| protected void | addOrderedChildrenTo(List<Expression>
The list used to store the string representation of this children)AbstractExpressionOverrides org. AbstractExpression to the given list.
|
| public final CollectionExpression | Returns: The single declaration represented by a temporary collectionCreates a new |
| public final JPQLQueryBNF | findQueryBNF(Expression
The expression)Expression that is a descendant of this oneOverrides org. Implements org. JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression.
|
| public final String | Returns: The FROM identifier that was actually parsedReturns the actual FROM identifier found in the string representation of the JPQL query, which has the actual case that was used. |
| public final Expression | Returns: The expression representing the AS OF clauseReturns the |
| public final Expression | Returns: The expression that was parsed representing the declarationReturns the |
| public abstract String | Returns: The BNF of the declaration part of this clauseReturns the BNF of the declaration part of this clause. |
| public final Expression | Returns: The expression representing the hierarchical query clauseReturns the |
| public final boolean | Returns: true if the query that got parsed had the AS OF clauseDetermines whether the AS OF clause is defined. |
| public final boolean | Returns: true if the declaration of this clause was parsed; false if
it was not parsedDetermines whether the declaration of this clause was parsed. |
| public final boolean | Returns: true if the query that got parsed had the hierarchical query clauseDetermines whether the hierarchical query clause was parsed or not. |
| public final boolean | Returns: true if there was a whitespace after the declaration; false otherwiseDetermines whether a whitespace was found after the declaration query clause, which will be
|
| public final boolean | Returns: true if a whitespace was parsed after the FROM identifier;
false otherwiseDetermines whether a whitespace was parsed after the FROM identifier. |
| public final boolean | Returns: true if there was a whitespace after the hierarchical query clause and
owned by this expression; false otherwiseDetermines whether a whitespace was found after the hierarchical query clause. |
| protected boolean | isParsingComplete(WordParser
The text to parse based on the current position of the cursor wordParser, String The word that was retrieved from the given text, which is the first word in the text word, Expression The expression)Expression that has already been parsedOverrides org. |
| protected void | parse(WordParser
The text to parse based on the current position of the cursor wordParser, boolean Determines whether the parsing system should be tolerant, meaning if it should
try to parse invalid or incomplete queries tolerant)Implements abstract org. WordParser.
|
| protected boolean | shouldParseWithFactoryFirst()
Overrides org. factories first or it should automatically fallback to the fallback factory.
|
| protected void | toParsedText(StringBuilder
The buffer used to append this writer, boolean Expression's string representationDetermines whether the string representation should represent what was parsed,
i.e. include any "virtual" whitespace (such as ending whitespace) and the actual case of the
JPQL identifiers actual)Implements abstract org. Expression, including its children,
if it has any.
|
| asOfClause | back to summary |
|---|---|
| private AbstractExpression asOfClause The
| |
| declaration | back to summary |
|---|---|
| private AbstractExpression declaration The declaration portion of this FROM clause. | |
| hasSpace | back to summary |
|---|---|
| private boolean hasSpace Determines whether a whitespace was parsed after the identifier FROM. | |
| hasSpaceAfterHierarchicalQueryClause | back to summary |
|---|---|
| private boolean hasSpaceAfterHierarchicalQueryClause Determines whether there is a whitespace after the hierarchical query clause.
| |
| hasSpaceDeclaration | back to summary |
|---|---|
| private boolean hasSpaceDeclaration Determines whether there is a whitespace after the declaration and either the hierarchical
query clause or the
| |
| hierarchicalQueryClause | back to summary |
|---|---|
| private AbstractExpression hierarchicalQueryClause The hierarchical query clause, which holds onto the
| |
| identifier | back to summary |
|---|---|
| private String identifier The actual identifier found in the string representation of the JPQL query. | |
| AbstractFromClause | back to summary |
|---|---|
| protected AbstractFromClause(AbstractExpression parent) Creates a new
| |
| acceptChildren | back to summary |
|---|---|
| public void acceptChildren(ExpressionVisitor visitor) Implements org. Doc from org. Visits the children of this
This does not traverse the
| |
| addChildrenTo | back to summary |
|---|---|
| protected void addChildrenTo(Collection<Expression> children) Overrides org. Doc from org. Adds the children of this
| |
| addOrderedChildrenTo | back to summary |
|---|---|
| protected void addOrderedChildrenTo(List<Expression> children) Overrides org. Doc from org. Adds the children of this
| |
| buildCollectionExpression | back to summary |
|---|---|
| public final CollectionExpression buildCollectionExpression() Creates a new
| |
| findQueryBNF | back to summary |
|---|---|
| public final JPQLQueryBNF findQueryBNF(Expression expression) Overrides org. Implements org. Doc from org. Retrieves the
| |
| getActualIdentifier | back to summary |
|---|---|
| public final String getActualIdentifier() Returns the actual FROM identifier found in the string representation of the JPQL query, which has the actual case that was used.
| |
| getAsOfClause | back to summary |
|---|---|
| public final Expression getAsOfClause() Returns the
| |
| getDeclaration | back to summary |
|---|---|
| public final Expression getDeclaration() Returns the
| |
| getDeclarationQueryBNFId | back to summary |
|---|---|
| public abstract String getDeclarationQueryBNFId() Returns the BNF of the declaration part of this clause.
| |
| getHierarchicalQueryClause | back to summary |
|---|---|
| public final Expression getHierarchicalQueryClause() Returns the
| |
| hasAsOfClause | back to summary |
|---|---|
| public final boolean hasAsOfClause() Determines whether the AS OF clause is defined.
| |
| hasDeclaration | back to summary |
|---|---|
| public final boolean hasDeclaration() Determines whether the declaration of this clause was parsed.
| |
| hasHierarchicalQueryClause | back to summary |
|---|---|
| public final boolean hasHierarchicalQueryClause() Determines whether the hierarchical query clause was parsed or not.
| |
| hasSpaceAfterDeclaration | back to summary |
|---|---|
| public final boolean hasSpaceAfterDeclaration() Determines whether a whitespace was found after the declaration query clause, which will be
| |
| hasSpaceAfterFrom | back to summary |
|---|---|
| public final boolean hasSpaceAfterFrom() Determines whether a whitespace was parsed after the FROM identifier.
| |
| hasSpaceAfterHierarchicalQueryClause | back to summary |
|---|---|
| public final boolean hasSpaceAfterHierarchicalQueryClause() Determines whether a whitespace was found after the hierarchical query clause. In some cases, the space is owned by a child of the hierarchical query clause.
| |
| isParsingComplete | back to summary |
|---|---|
| protected boolean isParsingComplete(WordParser wordParser, String word, Expression expression) Overrides org. Doc from org. Determines whether the parsing is complete based on what is left in the given text. The text is never empty.
| |
| parse | back to summary |
|---|---|
| protected void parse(WordParser wordParser, boolean tolerant) Implements abstract org. Doc from org. Parses the query by starting at the current position, which is part of the given
| |
| shouldParseWithFactoryFirst | back to summary |
|---|---|
| protected boolean shouldParseWithFactoryFirst() Overrides org. Doc from org. Determines whether the parsing of the query should be performed using the
| |
| toParsedText | back to summary |
|---|---|
| protected void toParsedText(StringBuilder writer, boolean actual) Implements abstract org. Doc from org. Generates a string representation of this
| |