public boolean isAssignableFrom(JClass cl)
  {
    if (getName().equals(cl.getName()))
      return true;

    JClass []ifc = cl.getInterfaces();

    for (int i = 0; i < ifc.length; i++) {
      if (isAssignableFrom(ifc[i]))
        return true;
    }

    if (cl.getSuperClass() != null)
      return isAssignableFrom(cl.getSuperClass());
    else
      return false;
  }
public boolean isAssignableFrom ( JClass cl ) { if ( getName ( ) . equals ( cl . getName ( ) ) ) return true ; JClass [ ] ifc = cl . getInterfaces ( ) ; for ( int i = 0 ; i < ifc . length ; i ++ ) { if ( isAssignableFrom ( ifc [ i ] ) ) return true ; } if ( cl . getSuperClass ( ) != null ) return isAssignableFrom ( cl . getSuperClass ( ) ) ; else return false ; }
Returns true if the class is assignable from the argument.