Class BasicStateObjectBuilder.SelectItemBuilder
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
-
- org.eclipse.persistence.jpa.jpql.tools.model.BasicStateObjectBuilder.SelectItemBuilder
-
- All Implemented Interfaces:
ExpressionVisitor
,IBuilder<StateObject,SelectClauseStateObject>
- Enclosing class:
- BasicStateObjectBuilder
protected class BasicStateObjectBuilder.SelectItemBuilder extends AnonymousExpressionVisitor implements IBuilder<StateObject,SelectClauseStateObject>
This builder is responsible to create the items owned by the top-levelSELECT
clause.
-
-
Field Summary
Fields Modifier and Type Field Description protected SelectClauseStateObject
parent
protected StateObject
stateObject
-
Constructor Summary
Constructors Modifier Constructor Description protected
SelectItemBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateObject
buildStateObject(SelectClauseStateObject parent, Expression expression)
Creates theStateObject
representation of the givenExpression
.protected void
visit(Expression expression)
Blindly visit the givenExpression
.void
visit(ResultVariable expression)
Visits theResultVariable
expression.-
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
-
-
-
-
Field Detail
-
parent
protected SelectClauseStateObject parent
-
stateObject
protected StateObject stateObject
-
-
Method Detail
-
buildStateObject
public StateObject buildStateObject(SelectClauseStateObject parent, Expression expression)
Creates theStateObject
representation of the givenExpression
.- Specified by:
buildStateObject
in interfaceIBuilder<StateObject,SelectClauseStateObject>
- Parameters:
parent
- The parent of the newStateObject
to createexpression
- The parsedExpression
to convert into aStateObject
- Returns:
- The
StateObject
representation of the givenExpression
-
visit
protected void visit(Expression expression)
Blindly visit the givenExpression
.- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
public void visit(ResultVariable expression)
Visits theResultVariable
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
-