Class EclipseLinkContentAssistVisitor.FollowingClausesVisitor
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
-
- org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseParentVisitor
-
- org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.FollowingClausesVisitor
-
- org.eclipse.persistence.jpa.jpql.tools.EclipseLinkContentAssistVisitor.FollowingClausesVisitor
-
- All Implemented Interfaces:
ExpressionVisitor
- Enclosing class:
- EclipseLinkContentAssistVisitor
protected static final class EclipseLinkContentAssistVisitor.FollowingClausesVisitor extends AbstractContentAssistVisitor.FollowingClausesVisitor
This visitor adds support for the additional clauses provided by EclipseLink, such as the
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
hasAsOfClause
protected boolean
hasConnectByClause
protected boolean
hasOrderSiblingsByClause
protected boolean
hasStartWithClause
protected boolean
introspect
-
Fields inherited from class org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.FollowingClausesVisitor
afterIdentifier, beforeIdentifier, hasFollowUpClauses
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FollowingClausesVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes of the internal data.protected boolean
hasFromClause(AbstractSelectStatement expression)
Determines if theFROM
clause has been defined or not.void
visit(FromClause expression)
Visits theFromClause
expression.void
visit(HierarchicalQueryClause expression)
void
visit(SimpleFromClause expression)
Visits theSimpleFromClause
expression.-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.FollowingClausesVisitor
visit, visit
-
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseParentVisitor
visit, visit
-
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
-
-
-
-
Method Detail
-
dispose
public void dispose()
Disposes of the internal data.- Overrides:
dispose
in classAbstractContentAssistVisitor.FollowingClausesVisitor
-
hasFromClause
protected boolean hasFromClause(AbstractSelectStatement expression)
Determines if theFROM
clause has been defined or not. The end limit of the check is also taken into consideration.- Overrides:
hasFromClause
in classAbstractContentAssistVisitor.FollowingClausesVisitor
- Parameters:
expression
- TheSELECT
expression being scanned for what has been defined between the range of clauses- Returns:
true
if theFROM
clause is defined;false
otherwise
-
visit
public void visit(FromClause expression)
Visits theFromClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(HierarchicalQueryClause expression)
-
visit
public void visit(SimpleFromClause expression)
Visits theSimpleFromClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAbstractContentAssistVisitor.FollowingClausesVisitor
- Parameters:
expression
- TheExpression
to visit
-
-