/** Change the super type. * @param superType the qualified name of the super type, * or <code>null</code> if the default type. */ public void setExtends(String superType) { if (!Strings.isEmpty(superType) && !Event.class.getName().equals(superType)) { JvmParameterizedTypeReference superTypeRef = newTypeRef(this.sarlEvent, superType); JvmTypeReference baseTypeRef = findType(this.sarlEvent, Event.class.getCanonicalName()); if (isSubTypeOf(this.sarlEvent, superTypeRef, baseTypeRef)) { this.sarlEvent.setExtends(superTypeRef); return; } } this.sarlEvent.setExtends(null); }