EclipseLink 2.4.0, build 'v20120608-r11652' API Reference

org.eclipse.persistence.jpa.jpql
Class AbstractContentAssistVisitor.AbstractHavingClauseSelectStatementHelper<T extends AbstractSelectStatement>

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor.AbstractHavingClauseSelectStatementHelper<T>
All Implemented Interfaces:
AbstractContentAssistVisitor.SelectStatementHelper<T,HavingClause>
Direct Known Subclasses:
AbstractContentAssistVisitor.HavingClauseSelectStatementHelper, AbstractContentAssistVisitor.SimpleHavingClauseSelectStatementHelper
Enclosing class:
AbstractContentAssistVisitor

protected abstract class AbstractContentAssistVisitor.AbstractHavingClauseSelectStatementHelper<T extends AbstractSelectStatement>
extends java.lang.Object
implements AbstractContentAssistVisitor.SelectStatementHelper<T,HavingClause>


Constructor Summary
protected AbstractContentAssistVisitor.AbstractHavingClauseSelectStatementHelper()
           
 
Method Summary
 void addClauseProposal()
          Adds the JPQL identifier of the clause being scanned by this helper.
 HavingClause getClause(AbstractSelectStatement expression)
          Returns the clause being scanned by this helper.
 Expression getClauseExpression(HavingClause clause)
          Returns the clause's expression.
 boolean hasClause(AbstractSelectStatement expression)
          Determines whether the clause exists in the parsed tree.
 boolean hasClauseExpression(HavingClause clause)
          Determines whether the clause's expression exists in the parsed tree.
 boolean hasSpaceBeforeClause(AbstractSelectStatement 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.jpql.AbstractContentAssistVisitor.SelectStatementHelper
appendNextClauseProposals, getNextHelper, getPreviousHelper, hasSpaceAfterClause
 

Constructor Detail

AbstractContentAssistVisitor.AbstractHavingClauseSelectStatementHelper

protected AbstractContentAssistVisitor.AbstractHavingClauseSelectStatementHelper()
Method Detail

addClauseProposal

public void addClauseProposal()
Adds the JPQL identifier of the clause being scanned by this helper.

Specified by:
addClauseProposal in interface AbstractContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,HavingClause>

getClause

public HavingClause getClause(AbstractSelectStatement expression)
Returns the clause being scanned by this helper. It is safe to type cast the clause because AbstractContentAssistVisitor.SelectStatementHelper.hasClause(AbstractSelectStatement) is called before this one.

Specified by:
getClause in interface AbstractContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,HavingClause>
Parameters:
expression - The AbstractSelectStatement being visited
Returns:
The clause being scanned

getClauseExpression

public Expression getClauseExpression(HavingClause clause)
Returns the clause's expression.

Specified by:
getClauseExpression in interface AbstractContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,HavingClause>
Parameters:
clause - The AbstractSelectStatement being visited
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 AbstractContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,HavingClause>
Parameters:
expression - The AbstractSelectStatement being visited
Returns:
true if the clause has been parsed; false otherwise

hasClauseExpression

public boolean hasClauseExpression(HavingClause clause)
Determines whether the clause's expression exists in the parsed tree.

Specified by:
hasClauseExpression in interface AbstractContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,HavingClause>
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

hasSpaceBeforeClause

public boolean hasSpaceBeforeClause(AbstractSelectStatement 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 AbstractContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,HavingClause>
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 AbstractContentAssistVisitor.SelectStatementHelper<T extends AbstractSelectStatement,HavingClause>
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

EclipseLink 2.4.0, build 'v20120608-r11652' API Reference