@ Nullable public static Class < ? > findClass ( ScriptModule module , String className ) { Set < Class < ? > > classes = module . getLoadedClasses ( ) ; Class < ? > targetClass = null ; for ( Class < ? > clazz : classes ) { if ( clazz . getName ( ) . equals ( className ) ) { targetClass = clazz ; break ; } } return targetClass ; }
Find a class in the module that matches the given className