coreRuntime/src/sc/type/TypeUtil.java
public static boolean isAssignableTypesFromOverride(Class from, Class to) {
      if (to == null)
         return true;
      while (from.isArray()) {
         if (!to.isArray())
            return false;
         from = from.getComponentType();
         to = to.getComponentType();
      }
      if (to.isArray())
         return false;
      Type fromType = Type.get(from);
      Type toType = Type.get(to);
      return fromType.isAssignableFromOverride(toType, from, to);
   }
/** Use for comparing parameter types in methods to decide when one overrides the other */
Use for comparing parameter types in methods to decide when one overrides the other
Use for comparing parameter types in methods to decide when one overrides the other
public static boolean isAssignableTypesFromOverride(Class from, Class to) {
      if (to == null)
         return true;
      while (from.isArray()) {
         if (!to.isArray())
            return false;
         from = from.getComponentType();
         to = to.getComponentType();
      }
      if (to.isArray())
         return false;
      Type fromType = Type.get(from);
      Type toType = Type.get(to);
      return fromType.isAssignableFromOverride(toType, from, to);
   }
public static boolean isAssignableTypesFromOverride ( Class from , Class to ) { if ( to == null ) return true ; while ( from . isArray ( ) ) { if ( ! to . isArray ( ) ) return false ; from = from . getComponentType ( ) ; to = to . getComponentType ( ) ; } if ( to . isArray ( ) ) return false ; Type fromType = Type . get ( from ) ; Type toType = Type . get ( to ) ; return fromType . isAssignableFromOverride ( toType , from , to ) ; }
Use for comparing parameter types in methods to decide when one overrides the other
Use for comparing parameter types in methods to decide when one overrides the other