Class BasicStateObjectBuilder.AbstractRangeDeclarationBuilder<S extends AbstractFromClauseStateObject>
java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor
org.eclipse.persistence.jpa.jpql.tools.model.BasicStateObjectBuilder.AbstractRangeDeclarationBuilder<S>
- All Implemented Interfaces:
ExpressionVisitor
,IBuilder<AbstractIdentificationVariableDeclarationStateObject,
S>
- Direct Known Subclasses:
BasicStateObjectBuilder.RangeDeclarationBuilder
,BasicStateObjectBuilder.SimpleRangeDeclarationBuilder
- Enclosing class:
BasicStateObjectBuilder
protected abstract class BasicStateObjectBuilder.AbstractRangeDeclarationBuilder<S extends AbstractFromClauseStateObject>
extends AbstractTraverseChildrenVisitor
implements IBuilder<AbstractIdentificationVariableDeclarationStateObject,S>
This builder is responsible to create a new identification variable declaration and to add it
to the state object representing the
FROM
clause.-
Field Summary
Modifier and TypeFieldDescriptionprotected S
The concrete instance ofAbstractFromClauseStateObject
where the new identification variable declaration is added.The concrete instance ofIdentificationVariableDeclarationStateObject
that represents the visitedIdentificationVariableDeclaration
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AbstractIdentificationVariableDeclarationStateObject
addRangeDeclaration
(IdentificationVariableDeclaration expression) Creates the concrete instance of anAbstractIdentificationVariableDeclarationStateObject
for the givenIdentificationVariableDeclaration
.buildStateObject
(S parent, Expression expression) Creates theStateObject
representation of the givenExpression
.void
visit
(AbstractSchemaName expression) Visits theAbstractSchemaName
expression.void
visit
(IdentificationVariable expression) Visits theIdentificationVariable
expression.void
visit
(IdentificationVariableDeclaration expression) Visits theIdentificationVariableDeclaration
expression.void
visit
(RangeVariableDeclaration expression) Visits theRangeVariableDeclaration
expression.Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor
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, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Field Details
-
parent
The concrete instance ofAbstractFromClauseStateObject
where the new identification variable declaration is added. -
stateObject
The concrete instance ofIdentificationVariableDeclarationStateObject
that represents the visitedIdentificationVariableDeclaration
.
-
-
Constructor Details
-
AbstractRangeDeclarationBuilder
protected AbstractRangeDeclarationBuilder()
-
-
Method Details
-
addRangeDeclaration
protected abstract AbstractIdentificationVariableDeclarationStateObject addRangeDeclaration(IdentificationVariableDeclaration expression) Creates the concrete instance of anAbstractIdentificationVariableDeclarationStateObject
for the givenIdentificationVariableDeclaration
.- Parameters:
expression
- TheIdentificationVariableDeclaration
to convert into aStateObject
- Returns:
- A new
StateObject
representing an identification variable declaration
-
buildStateObject
public AbstractIdentificationVariableDeclarationStateObject buildStateObject(S parent, Expression expression) Description copied from interface:IBuilder
Creates theStateObject
representation of the givenExpression
.- Specified by:
buildStateObject
in interfaceIBuilder<AbstractIdentificationVariableDeclarationStateObject,
S extends AbstractFromClauseStateObject> - Parameters:
parent
- The parent of the newStateObject
to createexpression
- The parsedExpression
to convert into aStateObject
- Returns:
- The
StateObject
representation of the givenExpression
-
visit
Description copied from interface:ExpressionVisitor
Visits theAbstractSchemaName
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theIdentificationVariable
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theIdentificationVariableDeclaration
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theRangeVariableDeclaration
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-