@Override
  @SuppressWarnings("unchecked")
  public void visitGStringExpression(GStringExpression expr) {
    replaceAllExprs(expr.getStrings());
    replaceAllExprs(expr.getValues());
  }
Groovy AST visitor that allows to replace both statements and expressions.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/compiler/ExpressionReplacingVisitorSupport.java