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
  • Method Details

    • getBooleanExpression

      public static List<org.codehaus.groovy.ast.expr.BooleanExpression> getBooleanExpression(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)
      Returns all BooleanExpression instances found in the given ClosureExpression.
    • getBooleanExpressionsFromAssertionStatements

      public static List<org.codehaus.groovy.ast.expr.BooleanExpression> getBooleanExpressionsFromAssertionStatements(org.codehaus.groovy.ast.stmt.BlockStatement blockStatement)
      Returns all BooleanExpression instances found in the given BlockStatement.
    • getBooleanExpression

      public static org.codehaus.groovy.ast.expr.BooleanExpression getBooleanExpression(List<org.codehaus.groovy.ast.expr.BooleanExpression> booleanExpressions)