/** @param newExpr @throws CannotCompileException */ public void edit(NewExpr newExpr) throws CannotCompileException { String signature = newExpr.getClassName() + newExpr.getSignature(); if (exceptionCtors.contains(signature)) { newExpr.replace("$_ = " + EXCEPTION_HELPER + ".createExceptionWithCause($class, $args);"); } else if (CTOR_TIMER1.equals(signature)) { newExpr.replace("$_ = new " + TIMER + "();"); } else if (CTOR_TIMER2.equals(signature)) { newExpr.replace("$_ = new " + TIMER + "($2);"); } }