MCPcopy Index your code
hub / github.com/beanshell/beanshell / reloadPackage

Method reloadPackage

src/bsh/classpath/ClassManagerImpl.java:418–435  ·  view source on GitHub ↗

Reload all classes in the specified package: e.g. "com.sun.tools" The special package name " " can be used to refer to unpackaged classes.

( String pack )

Source from the content-addressed store, hash-verified

416 to unpackaged classes.
417 */
418 @Override
419 public void reloadPackage( String pack )
420 throws ClassPathException
421 {
422 Collection classes =
423 baseClassPath.getClassesForPackage( pack );
424
425 if ( classes == null )
426 classes =
427 BshClassPath.getUserClassPath().getClassesForPackage( pack );
428
429 // no point in checking boot class path, can't reload those
430
431 if ( classes == null )
432 throw new ClassPathException("No classes found for package: "+pack);
433
434 reloadClasses( (String[])classes.toArray( new String[0] ) );
435 }
436
437 /**
438 Unimplemented

Callers

nothing calls this directly

Calls 3

getUserClassPathMethod · 0.95
reloadClassesMethod · 0.95
getClassesForPackageMethod · 0.80

Tested by

no test coverage detected