public boolean isFinal(TypeDeclaration clazz) {
return hasModifier(clazz,Modifier.FINAL);
}
public FieldDeclaration[] getEnumConstants(TypeDeclaration clazz) {
EnumDeclaration ed = (EnumDeclaration) clazz;
Collection<EnumConstantDeclaration> constants = ed.getEnumConstants();
return constants.toArray(new EnumConstantDeclaration[constants.size()]);
}