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:
- 
Method SummaryModifier and TypeMethodDescriptionstatic BooleanExpressiongetBooleanExpression(List<BooleanExpression> booleanExpressions) static List<BooleanExpression>getBooleanExpression(ClosureExpression closureExpression) Returns allBooleanExpressioninstances found in the givenClosureExpression.static List<BooleanExpression>getBooleanExpressionsFromAssertionStatements(BlockStatement blockStatement) Returns allBooleanExpressioninstances found in the givenBlockStatement.
- 
Method Details- 
getBooleanExpressionReturns allBooleanExpressioninstances found in the givenClosureExpression.
- 
getBooleanExpressionsFromAssertionStatementspublic static List<BooleanExpression> getBooleanExpressionsFromAssertionStatements(BlockStatement blockStatement) Returns allBooleanExpressioninstances found in the givenBlockStatement.
- 
getBooleanExpression
 
-