EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql.model
Class BasicStateObjectBuilder.WhenClauseBuilder

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
      extended by org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseChildrenVisitor
          extended by org.eclipse.persistence.jpa.jpql.model.BasicStateObjectBuilder.WhenClauseBuilder
All Implemented Interfaces:
IBuilder<CaseExpressionStateObject,CaseExpressionStateObject>, ExpressionVisitor
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
protected BasicStateObjectBuilder.WhenClauseBuilder()
           
 
Method Summary
 CaseExpressionStateObject buildStateObject(CaseExpressionStateObject parent, Expression expression)
          Creates the StateObject representation of the given Expression.
 void visit(WhenClause expression)
          Visits the WhenClause 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicStateObjectBuilder.WhenClauseBuilder

protected BasicStateObjectBuilder.WhenClauseBuilder()
Method Detail

buildStateObject

public CaseExpressionStateObject buildStateObject(CaseExpressionStateObject parent,
                                                  Expression expression)
Creates the StateObject representation of the given Expression.

Specified by:
buildStateObject in interface IBuilder<CaseExpressionStateObject,CaseExpressionStateObject>
Parameters:
parent - The parent of the new StateObject to create
expression - The parsed Expression to convert into a StateObject
Returns:
The StateObject representation of the given Expression

visit

public void visit(WhenClause expression)
Visits the WhenClause expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The WhenClause to visit

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference