Package org.apache.groovy.contracts.util
Class ExpressionUtils
java.lang.Object
org.apache.groovy.contracts.util.ExpressionUtils
Internal utility class for extracting a boolean expression from the given expression or statement.
- See Also:
ClosureExpression
,BooleanExpression
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleanExpression
getBooleanExpression(List<BooleanExpression> booleanExpressions)
static List<BooleanExpression>
getBooleanExpression(ClosureExpression closureExpression)
Returns allBooleanExpression
instances found in the givenClosureExpression
.static List<BooleanExpression>
getBooleanExpressionsFromAssertionStatements(BlockStatement blockStatement)
Returns allBooleanExpression
instances found in the givenBlockStatement
.
-
Constructor Details
-
ExpressionUtils
public ExpressionUtils()
-
-
Method Details
-
getBooleanExpression
Returns allBooleanExpression
instances found in the givenClosureExpression
. -
getBooleanExpressionsFromAssertionStatements
public static List<BooleanExpression> getBooleanExpressionsFromAssertionStatements(BlockStatement blockStatement)Returns allBooleanExpression
instances found in the givenBlockStatement
. -
getBooleanExpression
-