Class AbstractContentAssistVisitor.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
-
- All Implemented Interfaces:
ExpressionVisitor
- Direct Known Subclasses:
EclipseLinkContentAssistVisitor.FollowingClausesVisitor
- Enclosing class:
- AbstractContentAssistVisitor
protected static class AbstractContentAssistVisitor.FollowingClausesVisitor extends AbstractTraverseParentVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
afterIdentifier
The JPQL identifier of the clause used to determine if there is any clause defined after it.protected java.lang.String
beforeIdentifier
The JPQL identifier of the clause used to determine if there is any clause defined before it.protected boolean
hasFollowUpClauses
Determines whether there is at least one clause defined after the clause defined byafterIdentifier
.
-
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(SelectStatement expression)
Visits theSelectStatement
expression.void
visit(SimpleFromClause expression)
Visits theSimpleFromClause
expression.void
visit(SimpleSelectStatement expression)
Visits theSimpleSelectStatement
expression.-
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, visit
-
-
-
-
Field Detail
-
afterIdentifier
protected java.lang.String afterIdentifier
The JPQL identifier of the clause used to determine if there is any clause defined after it.
-
beforeIdentifier
protected java.lang.String beforeIdentifier
The JPQL identifier of the clause used to determine if there is any clause defined before it.
-
hasFollowUpClauses
protected boolean hasFollowUpClauses
Determines whether there is at least one clause defined after the clause defined byafterIdentifier
.
-
-
Method Detail
-
dispose
public void dispose()
Disposes of the internal data.
-
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.- 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(SelectStatement expression)
Visits theSelectStatement
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(SimpleFromClause expression)
Visits theSimpleFromClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(SimpleSelectStatement expression)
Visits theSimpleSelectStatement
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
-