public static String getClassName ( String path ) { for ( Pattern pattern : patterns ) { Matcher m = pattern . matcher ( path ) ; if ( m . find ( ) ) { return m . group ( 1 ) . replaceAll ( "[/\\\\]" , "." ) ; } } return null ; }
Returns the class name for a resource .