Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.jpa.internal.jpql
Class ContentAssistVisitor.AbstractFromClauseSelectStatementHelper<T extends AbstractSelectStatement>

java.lang.Object
  extended by org.eclipse.persistence.jpa.internal.jpql.ContentAssistVisitor.AbstractFromClauseSelectStatementHelper<T>

All Implemented Interfaces:
ContentAssistVisitor.SelectStatementHelper<T,AbstractFromClause>
Direct Known Subclasses:
ContentAssistVisitor.FromClauseSelectStatementHelper, ContentAssistVisitor.SimpleFromClauseSelectStatementHelper
Enclosing class:
ContentAssistVisitor

private abstract class ContentAssistVisitor.AbstractFromClauseSelectStatementHelper<T extends AbstractSelectStatement>
extends java.lang.Object
implements ContentAssistVisitor.SelectStatementHelper<T,AbstractFromClause>

Constructor Summary
private ContentAssistVisitor.AbstractFromClauseSelectStatementHelper()
           

 

Method Summary
protected  boolean addAppendableToCollection(T expression, int position)
           
protected abstract  void addClauseIdentifierProposals(T expression)
          Requests this helper to add the JPQL identifiers for the clauses that follows the FROM clause.
 void addClauseProposal()
          Adds the JPQL identifier of the clause being scanned by this helper.
 void appendNextClauseProposals(T expression, AbstractFromClause clause, int position, boolean complete)
          The position of the cursor is at the end of the given clause, requests to add the clauses' identifiers that can be added as proposals.
 AbstractFromClause getClause(T expression)
          Returns the clause being scanned by this helper.
 Expression getClauseExpression(AbstractFromClause clause)
          Returns the clause's expression.
 boolean hasClause(AbstractSelectStatement expression)
          Determines whether the clause exists in the parsed tree.
 boolean hasClauseExpression(AbstractFromClause clause)
          Determines whether the clause's expression exists in the parsed tree.
 boolean hasSpaceAfterClause(T expression)
          Determines whether there is a space (owned by the SELECT statement) after the clause being scanned by this helper.
 boolean hasSpaceBeforeClause(T expression)
          Determines whether there is a space (owned by the SELECT statement) before the clause being scanned by this helper.
 boolean isClauseExpressionComplete(Expression expression)
          Determines whether the clause's expression is complete or incomplete.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface org.eclipse.persistence.jpa.internal.jpql.ContentAssistVisitor.SelectStatementHelper
getNextHelper, getPreviousHelper

 

Constructor Detail

ContentAssistVisitor.AbstractFromClauseSelectStatementHelper

private ContentAssistVisitor.AbstractFromClauseSelectStatementHelper()

Method Detail

addAppendableToCollection

protected boolean addAppendableToCollection(T expression,
                                            int position)

addClauseIdentifierProposals

protected abstract void addClauseIdentifierProposals(T expression)
Requests this helper to add the JPQL identifiers for the clauses that follows the FROM clause.
Parameters:
expression - The AbstractSelectStatement being visited

addClauseProposal

public void addClauseProposal()
Adds the JPQL identifier of the clause being scanned by this helper.
Specified by:
addClauseProposal in interface ContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,AbstractFromClause>

appendNextClauseProposals

public final void appendNextClauseProposals(T expression,
                                            AbstractFromClause clause,
                                            int position,
                                            boolean complete)
The position of the cursor is at the end of the given clause, requests to add the clauses' identifiers that can be added as proposals.
Specified by:
appendNextClauseProposals in interface ContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,AbstractFromClause>
Parameters:
expression - The AbstractSelectStatement being visited
clause - The clause being scanned
position - The position of the cursor within the AbstractSelectStatement
complete - Determines whether the clause's expression is complete or not

getClause

public AbstractFromClause getClause(T expression)
Returns the clause being scanned by this helper. It is safe to type cast the clause because ContentAssistVisitor.SelectStatementHelper.hasClause(AbstractSelectStatement) is called before this one.
Specified by:
getClause in interface ContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,AbstractFromClause>
Parameters:
expression - The AbstractSelectStatement being visited
Returns:
The clause being scanned

getClauseExpression

public Expression getClauseExpression(AbstractFromClause clause)
Returns the clause's expression.
Specified by:
getClauseExpression in interface ContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,AbstractFromClause>
Returns:
The clause's expression

hasClause

public boolean hasClause(AbstractSelectStatement expression)
Determines whether the clause exists in the parsed tree.
Specified by:
hasClause in interface ContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,AbstractFromClause>
Parameters:
expression - The AbstractSelectStatement being visited
Returns:
true if the clause has been parsed; false otherwise

hasClauseExpression

public boolean hasClauseExpression(AbstractFromClause clause)
Determines whether the clause's expression exists in the parsed tree.
Specified by:
hasClauseExpression in interface ContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,AbstractFromClause>
Parameters:
clause - The clause being scanned
Returns:
true if the clause has its expression or a portion of it parsed; false if nothing was parsed

hasSpaceAfterClause

public boolean hasSpaceAfterClause(T expression)
Determines whether there is a space (owned by the SELECT statement) after the clause being scanned by this helper.
Specified by:
hasSpaceAfterClause in interface ContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,AbstractFromClause>
Parameters:
expression - The AbstractSelectStatement being visited
Returns:
true if a space follows the clause; false otherwise

hasSpaceBeforeClause

public boolean hasSpaceBeforeClause(T expression)
Determines whether there is a space (owned by the SELECT statement) before the clause being scanned by this helper.
Specified by:
hasSpaceBeforeClause in interface ContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,AbstractFromClause>
Parameters:
expression - The AbstractSelectStatement being visited
Returns:
true if a space precedes the clause; false otherwise

isClauseExpressionComplete

public boolean isClauseExpressionComplete(Expression expression)
Determines whether the clause's expression is complete or incomplete.
Specified by:
isClauseExpressionComplete in interface ContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,AbstractFromClause>
Parameters:
expression - The clause's expression to verify its completeness
Returns:
true if the Expression is complete based on its content versus what the grammar expects; false otherwise

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.