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 the
WHEN
clauses for a
CASE
expression.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildStateObject
(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, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Constructor Details
-
WhenClauseBuilder
protected WhenClauseBuilder()
-
-
Method Details
-
buildStateObject
public CaseExpressionStateObject buildStateObject(CaseExpressionStateObject parent, Expression expression) Description copied from interface:IBuilder
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
Description copied from interface:ExpressionVisitor
Visits theWhenClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheWhenClause
to visit
-