public class AssertionExpression extends AbstractDeferredExpression<AssertionResult> implements ExceptionHandlingNode<AssertionResult>
Expression
that resolves to a AssertionStatus
. An AssertionExpression
is composed by a
condition expression and a precondition expression. The precondition specifies if it makes sense to evaluate the
AssertionExpression
.AssertionResolver
,
Serialized FormConstructor and Description |
---|
AssertionExpression(AssertionBuilder builder) |
Modifier and Type | Method and Description |
---|---|
Expression<java.lang.Boolean> |
condition() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Expression<java.lang.Boolean>> |
getChildren()
Has to return the children of the node.
|
AssertionResult |
handle(java.lang.Exception exception) |
int |
hashCode() |
java.lang.String |
key() |
java.lang.String |
name() |
Expression<java.lang.Boolean> |
preConditionsExpression() |
java.lang.String |
toString() |
get, isResolved
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
get, isResolved
public AssertionExpression(AssertionBuilder builder)
public java.util.List<Expression<java.lang.Boolean>> getChildren()
Node
null
getChildren
in interface Node
public Expression<java.lang.Boolean> condition()
public Expression<java.lang.Boolean> preConditionsExpression()
public java.lang.String name()
public AssertionResult handle(java.lang.Exception exception)
handle
in interface ExceptionHandlingNode<AssertionResult>
exception
- to handle, usually comes from bottom nodespublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String key()