Class BasicStateObjectBuilder.WhenClauseBuilder
- 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.WhenClauseBuilder
-
- All Implemented Interfaces:
ExpressionVisitor
,IBuilder<CaseExpressionStateObject,CaseExpressionStateObject>
- Enclosing class:
- BasicStateObjectBuilder
protected class BasicStateObjectBuilder.WhenClauseBuilder extends AbstractTraverseChildrenVisitor implements IBuilder<CaseExpressionStateObject,CaseExpressionStateObject>
This builder is responsible to create theWHEN
clauses for aCASE
expression.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WhenClauseBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CaseExpressionStateObject
buildStateObject(CaseExpressionStateObject parent, Expression expression)
Creates theStateObject
representation of the givenExpression
.void
visit(WhenClause expression)
Visits theWhenClause
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
-
-
-
-
Method Detail
-
buildStateObject
public CaseExpressionStateObject buildStateObject(CaseExpressionStateObject parent, Expression expression)
Creates theStateObject
representation of the givenExpression
.- Specified by:
buildStateObject
in interfaceIBuilder<CaseExpressionStateObject,CaseExpressionStateObject>
- 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(WhenClause expression)
Visits theWhenClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheWhenClause
to visit
-
-