extAsClass.setAsdoc(toAsDoc(event.doc) + "\n * @see " + compilationUnitModel.getQName());
FieldModel eventNameConstant = new FieldModel("NAME", "String", CompilerUtils.quote(event.name));
eventNameConstant.setStatic(true);
eventNameConstant.setAsdoc(MessageFormat.format("This constant defines the value of the <code>type</code> property of the event object\nfor a <code>{0}</code> event.\n * @eventType {0}", event.name));
extAsClass.addMember(eventNameConstant);
MethodModel constructorModel = extAsClass.createConstructor();
constructorModel.addParam(new ParamModel("arguments", "Array"));
StringBuilder propertyAssignments = new StringBuilder();
for (int i = 0; i < event.params.size(); i++) {