} else {
type = verbalizer.verbalize(c.getList());
}
return name + type + ")";
} else if (condition instanceof BeforeCondition) {
BeforeCondition c = (BeforeCondition) condition;
String type = "";
if (c.getType() != null) {
type = verbalizer.verbalize(c.getType());
} else {
type = verbalizer.verbalize(c.getList());
}
return name + type + ")";
} else if (condition instanceof AfterCondition) {
AfterCondition c = (AfterCondition) condition;
String type = "";
if (c.getType() != null) {
type = verbalizer.verbalize(c.getType());
} else {
type = verbalizer.verbalize(c.getList());
}
return name + type + ")";
} else if (condition instanceof StartsWithCondition) {
StartsWithCondition c = (StartsWithCondition) condition;
String arg = "";
if (c.getType() != null) {
arg = verbalizer.verbalize(c.getType());
} else {
arg = verbalizer.verbalize(c.getList());
}
return name + arg + ")";
} else if (condition instanceof EndsWithCondition) {
EndsWithCondition c = (EndsWithCondition) condition;
String type = "";
if (c.getType() != null) {
type = verbalizer.verbalize(c.getType());
} else {
type = verbalizer.verbalize(c.getList());
}
return name + type + ")";
} else if (condition instanceof SizeCondition) {
SizeCondition c = (SizeCondition) condition;
INumberExpression minE = c.getMinExpr();
String min = verbalizeMin(minE, Integer.MIN_VALUE);
INumberExpression maxE = c.getMaxExpr();
String max = verbalizeMax(maxE, Integer.MAX_VALUE);
String var = c.getVarExpr() == null ? "" : ", " + c.getVarExpr();
ListExpression<?> listExpr = c.getListExpr();
if (listExpr == null) {
return name + min + max + var + ")";
} else {
String l = verbalizer.verbalize(listExpr);
return name + l + min + max + var + ")";
}
} else if (condition instanceof ImplicitCondition) {
ImplicitCondition c = (ImplicitCondition) condition;
return verbalizer.verbalize(c.getExpr());
}
return condition.getClass().getSimpleName();
}