MCPcopy Create free account
hub / github.com/beanshell/beanshell / doSuperImport

Method doSuperImport

src/bsh/classpath/ClassManagerImpl.java:472–491  ·  view source on GitHub ↗

Support for "import ;" Hide details in here as opposed to NameSpace.

()

Source from the content-addressed store, hash-verified

470 Hide details in here as opposed to NameSpace.
471 */
472 @Override
473 public void doSuperImport()
474 throws UtilEvalError
475 {
476 // Should we prevent it from happening twice?
477
478 try {
479 getClassPath().insureInitialized();
480 // prime the lookup table
481 getClassNameByUnqName( "" ) ;
482
483 // always true now
484 //getClassPath().setNameCompletionIncludeUnqNames(true);
485
486 } catch ( ClassPathException e ) {
487 throw new UtilEvalError("Error importing classpath "+ e );
488 }
489
490 superImport = true;
491 }
492
493 @Override
494 protected boolean hasSuperImport() { return superImport; }

Callers

nothing calls this directly

Calls 3

getClassPathMethod · 0.95
getClassNameByUnqNameMethod · 0.95
insureInitializedMethod · 0.80

Tested by

no test coverage detected