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 theFROM
clause.
-
-
Field Summary
Fields Modifier and Type Field Description protected S
parent
The concrete instance ofAbstractFromClauseStateObject
where the new identification variable declaration is added.protected AbstractIdentificationVariableDeclarationStateObject
stateObject
The concrete instance ofIdentificationVariableDeclarationStateObject
that represents the visitedIdentificationVariableDeclaration
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRangeDeclarationBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AbstractIdentificationVariableDeclarationStateObject
addRangeDeclaration(IdentificationVariableDeclaration expression)
Creates the concrete instance of anAbstractIdentificationVariableDeclarationStateObject
for the givenIdentificationVariableDeclaration
.AbstractIdentificationVariableDeclarationStateObject
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
-
-
-
-
Field Detail
-
parent
protected S extends AbstractFromClauseStateObject parent
The concrete instance ofAbstractFromClauseStateObject
where the new identification variable declaration is added.
-
stateObject
protected AbstractIdentificationVariableDeclarationStateObject stateObject
The concrete instance ofIdentificationVariableDeclarationStateObject
that represents the visitedIdentificationVariableDeclaration
.
-
-
Method Detail
-
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)
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
public void visit(AbstractSchemaName expression)
Visits theAbstractSchemaName
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(IdentificationVariable expression)
Visits theIdentificationVariable
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(IdentificationVariableDeclaration expression)
Visits theIdentificationVariableDeclaration
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(RangeVariableDeclaration expression)
Visits theRangeVariableDeclaration
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
-