int numParams = params.length;
boolean[] seenFlags = new boolean[numParams];
// See if any parameter is tagged as a PluralCount parameter.
for (int i = 0; i < numParams; ++i) {
PluralCount pluralCount = params[i].getAnnotation(PluralCount.class);
if (pluralCount != null) {
if (pluralParamIndex >= 0) {
throw error(logger, m.getName()
+ ": there can only be one PluralCount parameter");
}
JPrimitiveType primType = params[i].getType().isPrimitive();
if (primType != JPrimitiveType.INT && primType != JPrimitiveType.SHORT) {
throw error(logger, m.getName()
+ ": PluralCount parameter must be int or short");
}
pluralParamIndex = i;
ruleClass = pluralCount.value();
}
}
StringBuffer generated = new StringBuffer();
if (ruleClass == null) {