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

Method importStatic

src/bsh/NameSpace.java:1473–1483  ·  view source on GitHub ↗
( Class clas )

Source from the content-addressed store, hash-verified

1471 /**
1472 */
1473 public void importStatic( Class clas )
1474 {
1475 if ( importedStatic == null )
1476 importedStatic = new ArrayList<Class>();
1477
1478 // If it exists, remove it and add it at the end (avoid memory leak)
1479 importedStatic.remove( clas );
1480
1481 importedStatic.add( clas );
1482 nameSpaceChanged();
1483 }
1484
1485 /**
1486 Set the package name for classes defined in this namespace.

Callers 3

evalMethod · 0.95
setClassStaticMethod · 0.95

Calls 3

nameSpaceChangedMethod · 0.95
removeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected