public static Class < ? > [ ] getClasses ( Class < ? > module ) { HashSet < Class < ? > > result = new HashSet <> ( ) ; ClassLoader classLoader = Modules . class . getClassLoader ( ) ; for ( ClassModel info : Modules . getModuleModel ( module ) . getAllClassDependencies ( ) ) { try { result . add ( classLoader . loadClass ( info . getQualifiedName ( ) ) ) ; } catch ( ClassNotFoundException e ) { Modules . logger . error ( "Error loading class " + info . getQualifiedName ( ) , e ) ; } } return result . toArray ( new Class < ? > [ ] { } ) ; }
Return the names of all classes in the given module .