public final class SearchedCase extends DataObject
Constructor and Description |
---|
SearchedCase(Condition whenCondition, TypedExpression thenExpression)
Creates a
SearchedCase that has the specified WHEN condition and THEN expression. |
Modifier and Type | Method and Description |
---|---|
TypedExpression |
getThenExpression()
Gets the
TypedExpression that resolves to the THEN expression of this SearchedCase . |
Condition |
getWhenCondition()
Gets the
Condition that resolves to the WHEN condition of this SearchedCase . |
boolean |
isCompositeObject()
Indicates whether this
SearchedCase contains other SyntaxObject objects. |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the
visitSearchedCase method of the SyntaxObjectVisitor and passes that method this SearchedCase and an Object . |
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax
public SearchedCase(Condition whenCondition, TypedExpression thenExpression)
SearchedCase
that has the specified WHEN
condition and THEN
expression.whenCondition
- A Condition
that resolves to a condition for a searched case expression clause of a CASE
expression.thenExpression
- A TypedExpression
that resolves to a THEN
expression for a searched case expression clause of a CASE
expression.public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitSearchedCase
method of the SyntaxObjectVisitor
and passes that method this SearchedCase
and an Object
.visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitSearchedCase
method.public Condition getWhenCondition()
Condition
that resolves to the WHEN
condition of this SearchedCase
.Condition
that represents the WHEN
condition of a searched case expression clause of a Case
expression.public TypedExpression getThenExpression()
TypedExpression
that resolves to the THEN
expression of this SearchedCase
.TypedExpression
that represents the THEN
expression of a searched case expression clause of a Case
expression.public boolean isCompositeObject()
SearchedCase
contains other SyntaxObject
objects. Because a SearchedCase
has a Condition
and a TypedExpression
, which are SyntaxObject
objects, this method returns true
.boolean
that is true
.