public Transform match(Class type) throws Exception {
  String name=type.getName();
  if (name.startsWith("java.lang")) {
    return matchLanguage(type);
  }
  if (name.startsWith("java.util")) {
    return matchUtility(type);
  }
  if (name.startsWith("java.net")) {
    return matchURL(type);
  }
  if (name.startsWith("java.io")) {
    return matchFile(type);
  }
  if (name.startsWith("java.sql")) {
    return matchSQL(type);
  }
  if (name.startsWith("java.math")) {
    return matchMath(type);
  }
  return matchEnum(type);
}

public Transform match ( Class type ) throws Exception { String name = type . getName ( ) ; if ( name . startsWith ( "java.lang" ) ) { return matchLanguage ( type ) ; } if ( name . startsWith ( "java.util" ) ) { return matchUtility ( type ) ; } if ( name . startsWith ( "java.net" ) ) { return matchURL ( type ) ; } if ( name . startsWith ( "java.io" ) ) { return matchFile ( type ) ; } if ( name . startsWith ( "java.sql" ) ) { return matchSQL ( type ) ; } if ( name . startsWith ( "java.math" ) ) { return matchMath ( type ) ; } return matchEnum ( type ) ; }
this method attempts to perform a resolution of the transform based on its package prefix . this allows this matcher to create a logical group of transforms within a single method based on the types package prefix . if no transform can be found then this will throw an exception .
