/** 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) && !Agent.class.getName().equals(superType)) { JvmParameterizedTypeReference superTypeRef = newTypeRef(this.sarlAgent, superType); JvmTypeReference baseTypeRef = findType(this.sarlAgent, Agent.class.getCanonicalName()); if (isSubTypeOf(this.sarlAgent, superTypeRef, baseTypeRef)) { this.sarlAgent.setExtends(superTypeRef); return; } } this.sarlAgent.setExtends(null); }