final IASTName enumerationName = f.newName(("class " + enumDeclarationInfo.getName().getIdentifier()).toCharArray());
final ICPPASTEnumerationSpecifier enumerationSpecifier = f.newEnumerationSpecifier(enumerationName);
enumerationSpecifier.setIsScoped(true);
for (final EnumConstantDeclarationInfo enumConstantDeclaration : enumDeclarationInfo.enumConstantDeclarations()) {
enumerationSpecifier.addEnumerator(buildEnumConstantDeclaration(enumConstantDeclaration));
}
return f.newSimpleDeclaration(enumerationSpecifier);
}
private IASTEnumerator buildEnumConstantDeclaration(final EnumConstantDeclarationInfo enumConstantDeclaration) {