Lines Matching refs:script

26 package com.sun.tools.script.shell;
32 import javax.script.*;
35 * This is the main class for Java script shell.
46 // process each script command
67 // current script file encoding selected
86 // collect non-option arguments and pass these as script arguments
92 // are passed as script arguments
97 // is treated as script file name and rest of the non-option
98 // arguments are passed to script as script arguments
104 // collect script arguments and return to main
189 * Adds script source file Command
190 * @param se ScriptEngine used to evaluate the script file
191 * @param fileName script file name
192 * @param encoding script file encoding
206 * Adds script string source Command
207 * @param se ScriptEngine to be used to evaluate the script string
226 * Prints list of script engines available and exits.
245 * @param encoding script file encoding, can be null
290 * Evaluates given script source
292 * @param script Script source string
293 * @param exitOnError whether to exit the process on script error
296 String script, boolean exitOnError) {
298 return se.eval(script);
300 getError().println(getMessage("string.script.error",
314 * Evaluate script string source and exit on script error
316 * @param script Script source string
318 private static void evaluateString(ScriptEngine se, String script) {
319 evaluateString(se, script, true);
323 * Evaluates script from given reader
325 * @param reader Reader from which is script is read
334 getError().println(getMessage("file.script.error",
349 * @param is InputStream from which script is read
407 // get current script engine
426 // initialize a given script engine
436 sysIn = cl.getResourceAsStream("com/sun/tools/script/shell/init." +
469 * load script engines. So, this ensures that user defined
470 * script engines will be loaded. For classes referred
472 * but this is script engine dependent. We don't have
473 * script engine independent solution anyway. Unless we
483 // now initialize script engine manager. Note that this has to
485 // will see script engines from user specified classpath
573 // the script engine manager
579 private static String BUNDLE_NAME = "com.sun.tools.script.shell.messages";