JDefinedClass _class(TypeElement element) throws ProcessingException {
return _class(element, new TypeEnvironment());
}
private JDefinedClass _class(TypeElement element, TypeEnvironment environment) throws ProcessingException {
EClassType classType = toClassType(element.getKind());
int modifiers = toJMod(element.getModifiers());
if (classType.equals(EClassType.INTERFACE))
modifiers = modifiers & ~JMod.ABSTRACT;
JDefinedClass newClass;
try {
newClass = codeModel._class(modifiers, element.getQualifiedName().toString(), classType);