EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql
Class AbstractContentAssistVisitor.CompoundExpressionHelper

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
      extended by org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor.CompoundExpressionHelper
All Implemented Interfaces:
ExpressionVisitor
Enclosing class:
AbstractContentAssistVisitor

protected class AbstractContentAssistVisitor.CompoundExpressionHelper
extends AnonymousExpressionVisitor

This helper is responsible to traverse the parsed tree and to determine if JPQL identifiers with a compound role can be appended after an Expression, which is based on the location of the cursor.


Field Summary
protected  boolean betweenCollectionChildren
           
protected  Expression leftExpression
           
protected  LogicalExpression logicalExpression
           
protected  Expression rightExpression
           
 
Constructor Summary
protected AbstractContentAssistVisitor.CompoundExpressionHelper()
           
 
Method Summary
 void dispose()
           
 boolean hasIdentifier()
           
 boolean hasNext()
           
 int identifierLength()
           
 boolean isBetweenCollectionChildren()
           
 boolean isCompoundable()
           
 int length()
           
 void next()
           
 void visit(AndExpression expression)
          Visits the AndExpression expression.
 void visit(CollectionExpression expression)
          Visits the CollectionExpression expression.
 void visit(ComparisonExpression expression)
          Visits the ComparisonExpression expression.
 void visit(Expression expression)
          Blindly visit the given Expression.
 void visit(OrExpression expression)
          Visits the OrExpression expression.
protected  void visitLogicalExpression(LogicalExpression expression)
           
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

betweenCollectionChildren

protected boolean betweenCollectionChildren

leftExpression

protected Expression leftExpression

logicalExpression

protected LogicalExpression logicalExpression

rightExpression

protected Expression rightExpression
Constructor Detail

AbstractContentAssistVisitor.CompoundExpressionHelper

protected AbstractContentAssistVisitor.CompoundExpressionHelper()
Method Detail

dispose

public void dispose()

hasIdentifier

public boolean hasIdentifier()

hasNext

public boolean hasNext()

identifierLength

public int identifierLength()

isBetweenCollectionChildren

public boolean isBetweenCollectionChildren()

isCompoundable

public boolean isCompoundable()

length

public int length()

next

public void next()

visit

public void visit(AndExpression expression)
Visits the AndExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(CollectionExpression expression)
Visits the CollectionExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(ComparisonExpression expression)
Visits the ComparisonExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(Expression expression)
Blindly visit the given Expression.

Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(OrExpression expression)
Visits the OrExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visitLogicalExpression

protected void visitLogicalExpression(LogicalExpression expression)

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference