Package org.apache.groovy.contracts.util
Class ExpressionUtils
- java.lang.Object
-
- org.apache.groovy.contracts.util.ExpressionUtils
-
public class ExpressionUtils extends Object
Internal utility class for extracting a boolean expression from the given expression or statement.
- See Also:
ClosureExpression
,BooleanExpression
-
-
Constructor Summary
Constructors Constructor Description ExpressionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
.
-
-
-
Method Detail
-
getBooleanExpression
public static List<BooleanExpression> getBooleanExpression(ClosureExpression closureExpression)
Returns allBooleanExpression
instances found in the givenClosureExpression
.
-
getBooleanExpressionsFromAssertionStatements
public static List<BooleanExpression> getBooleanExpressionsFromAssertionStatements(BlockStatement blockStatement)
Returns allBooleanExpression
instances found in the givenBlockStatement
.
-
getBooleanExpression
public static BooleanExpression getBooleanExpression(List<BooleanExpression> booleanExpressions)
-
-