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

Method loadDefaultImports

src/bsh/NameSpace.java:1340–1358  ·  view source on GitHub ↗

Import standard packages. Currently: importClass("bsh.EvalError"); importClass("bsh.Interpreter"); importPackage("javax.swing.event"); importPackage("javax.swing"); importPackage("java.awt.event"); importPackage("java.awt"); importPackage("java.net"); importPackage("

()

Source from the content-addressed store, hash-verified

1338 </pre>
1339 */
1340 public void loadDefaultImports()
1341 {
1342 /**
1343 Note: the resolver looks through these in reverse order, per
1344 precedence rules... so for max efficiency put the most common
1345 ones later.
1346 */
1347 importClass("bsh.EvalError");
1348 importClass("bsh.Interpreter");
1349 importPackage("javax.swing.event");
1350 importPackage("javax.swing");
1351 importPackage("java.awt.event");
1352 importPackage("java.awt");
1353 importPackage("java.net");
1354 importPackage("java.util");
1355 importPackage("java.io");
1356 importPackage("java.lang");
1357 importCommands("/bsh/commands");
1358 }
1359
1360 /**
1361 This is the factory for Name objects which resolve names within

Callers 2

setParentMethod · 0.95
clearMethod · 0.95

Calls 3

importClassMethod · 0.95
importPackageMethod · 0.95
importCommandsMethod · 0.95

Tested by

no test coverage detected