boolean (NewExprent expr, VarType cltype) { if (expr.getNewType().equals(cltype)) { VarType[] params = expr.getConstructor().getDescriptor().params; return params.length == 0 || params.length == 1 && params[0].equals(VarType.VARTYPE_STRING); } return false; }