EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

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

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

protected class AbstractContentAssistVisitor.EnumVisitor
extends AbstractExpressionVisitor

This visitor determines whether a path expression can be resolved as a fully qualified enum type and an enum constant.

The valid locations are:


Field Summary
protected  AbstractPathExpression pathExpression
          The AbstractPathExpression being scanned for its location within the JPQL query.
protected  boolean valid
          Determines whether the path expression could potentially represent a fully qualified enum constant, which is dictated by the location of the path expression within the query.
 
Constructor Summary
protected AbstractContentAssistVisitor.EnumVisitor()
           
 
Method Summary
 void dispose()
          Disposes of the internal data.
 boolean isValid()
          Determines whether the path expression could potentially represent a fully qualified enum constant, which is dictated by the location of the path expression within the query.
 void visit(CaseExpression expression)
          Visits the CaseExpression expression.
 void visit(CoalesceExpression expression)
          Visits the CoalesceExpression expression.
 void visit(CollectionMemberExpression expression)
          Visits the CollectionMemberExpression expression.
 void visit(CollectionValuedPathExpression expression)
          Visits the CollectionValuedPathExpression expression.
 void visit(ComparisonExpression expression)
          Visits the ComparisonExpression expression.
 void visit(ConstructorExpression expression)
          Visits the ConstructorExpression expression.
 void visit(FunctionExpression expression)
          Visits the FunctionExpression expression.
 void visit(InExpression expression)
          Visits the InExpression expression.
 void visit(NullIfExpression expression)
          Visits the NullIfExpression expression.
 void visit(StateFieldPathExpression expression)
          Visits the StateFieldPathExpression expression.
 void visit(UpdateItem expression)
          Visits the UpdateItem expression.
 void visit(WhenClause expression)
          Visits the WhenClause expression.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractExpressionVisitor
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

pathExpression

protected AbstractPathExpression pathExpression
The AbstractPathExpression being scanned for its location within the JPQL query.


valid

protected boolean valid
Determines whether the path expression could potentially represent a fully qualified enum constant, which is dictated by the location of the path expression within the query. Only a few location allows an enum constant.

Constructor Detail

AbstractContentAssistVisitor.EnumVisitor

protected AbstractContentAssistVisitor.EnumVisitor()
Method Detail

dispose

public void dispose()
Disposes of the internal data.


isValid

public boolean isValid()
Determines whether the path expression could potentially represent a fully qualified enum constant, which is dictated by the location of the path expression within the query. Only a few location allows an enum constant.

Returns:
true if the path expression represents a enum constant; false otherwise

visit

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

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

visit

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

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

visit

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

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

visit

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

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AbstractExpressionVisitor
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 AbstractExpressionVisitor
Parameters:
expression - The Expression to visit

visit

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

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

visit

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

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

visit

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

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

visit

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

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

visit

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

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

visit

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

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AbstractExpressionVisitor
Parameters:
expression - The UpdateItem to visit

visit

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

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AbstractExpressionVisitor
Parameters:
expression - The WhenClause to visit

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference