EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

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

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

protected static class AbstractContentAssistVisitor.InvalidExpressionVisitor
extends AbstractExpressionVisitor

This visitor determines if the visited Expression is one of the two that represents an invalid expression.


Field Summary
protected  Expression expression
          The invalid Expression, which is either UnknownExpression or BadExpression.
 
Constructor Summary
protected AbstractContentAssistVisitor.InvalidExpressionVisitor()
           
 
Method Summary
 void dispose()
          Disposes of the internal data.
 boolean isInvalid()
          Determines whether the visited Expression represents an invalid fragment.
 void visit(BadExpression expression)
          Visits the BadExpression expression.
 void visit(UnknownExpression expression)
          Visits the UnknownExpression 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, 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

expression

protected Expression expression
The invalid Expression, which is either UnknownExpression or BadExpression.

Constructor Detail

AbstractContentAssistVisitor.InvalidExpressionVisitor

protected AbstractContentAssistVisitor.InvalidExpressionVisitor()
Method Detail

dispose

public void dispose()
Disposes of the internal data.


isInvalid

public boolean isInvalid()
Determines whether the visited Expression represents an invalid fragment.

Returns:
true if the Expression is an invalid fragment; false otherwise

visit

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

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

visit

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

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

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference