Package org.neo4j.cypherdsl.core
Class Case
- java.lang.Object
-
- org.neo4j.cypherdsl.core.Case
-
- All Implemented Interfaces:
Visitable
- Direct Known Subclasses:
Case.GenericCase,Case.SimpleCase
@API(status=EXPERIMENTAL, since="1.0") public abstract class Case extends java.lang.Object implements VisitableSee CaseExpression.- Since:
- 1.0
- Author:
- Gerrit Meier, Michael J. Simons
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCase.CaseElseRepresents a finalizing `else` expression.static interfaceCase.CaseEndingSpecification for a renderable, complete CASE statementclassCase.CaseWhenThenRepresents a pair of `when-then` expressions.static classCase.GenericCaseImplementation of theCaseclass to support generic case.classCase.OngoingWhenThenHelper class to collect `when` expressions and createCase.CaseWhenTheninstances when the `then` is provided.static classCase.SimpleCaseSpecial implementation of theCaseclass to support simple case with an initial expression / condition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)Case.OngoingWhenThenwhen(Expression nextExpression)Creates a new case/when expression with an additionalWHENblock.
-
-
-
Method Detail
-
when
public Case.OngoingWhenThen when(Expression nextExpression)
Creates a new case/when expression with an additionalWHENblock.- Parameters:
nextExpression- The next expression to use.- Returns:
- An ongoing when builder.
-
-