jEnum.addConstructor(constructor);
int enumCount = 0;
while (enumeration.hasMoreElements()) {
Facet facet = (Facet) enumeration.nextElement();
JEnumConstant enumConstant;
if (useValuesAsName) {
enumConstant = new JEnumConstant(
translateEnumValueToIdentifier(component.getEnumBinding(), facet),
new String[]{"\"" + facet.getValue() + "\""});
} else {
enumConstant = new JEnumConstant(
"VALUE_" + enumCount, new String[]{"\""
+ facet.getValue() + "\""});
}
// custom annotations