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 Form| Constructor 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, isResolvedclone, finalize, getClass, notify, notifyAll, wait, wait, waitget, isResolvedpublic AssertionExpression(AssertionBuilder builder)
public java.util.List<Expression<java.lang.Boolean>> getChildren()
NodenullgetChildren in interface Nodepublic 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.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String key()