@ Check ( CheckType . FAST ) public void checkSuperType ( SarlSkill skill ) { final int nbSuperTypes = checkSuperTypes ( skill , SARL_SKILL__EXTENDS , Utils . singletonList ( skill . getExtends ( ) ) , Skill . class , false ) ; checkImplementedTypes ( skill , SARL_SKILL__IMPLEMENTS , skill . getImplements ( ) , Capacity . class , nbSuperTypes > 0 ? 0 : 1 , true ) ; }
Check if the supertype of the given skill is a subtype of Skill .