return result;
}
else if (ctClass.isEnum())
{
JavassistEnumInfo enumInfo = new JavassistEnumInfo(this, ctClass, null);
CtField[] fields = ctClass.getFields();
EnumConstantInfoImpl[] constants = new EnumConstantInfoImpl[fields.length];
int i = 0;
for (CtField field : fields)
{
AnnotationValue[] annotations = getAnnotations(field);
constants[i++] = new EnumConstantInfoImpl(field.getName(), enumInfo, annotations);
}
enumInfo.setEnumConstants(constants);
return enumInfo;
}
Class[] types = new Class[] { JavassistTypeInfoFactoryImpl.class, CtClass.class, Class.class};
Constructor con = JavassistTypeInfo.class.getDeclaredConstructor(types);