Lines Matching refs:script

26 package javax.script;
55 * an array of positional arguments to a script.
57 public static final String ARGV="javax.script.argv";
63 public static final String FILENAME = "javax.script.filename";
69 public static final String ENGINE = "javax.script.engine";
75 public static final String ENGINE_VERSION = "javax.script.engine_version";
83 public static final String NAME = "javax.script.name";
89 public static final String LANGUAGE = "javax.script.language";
95 public static final String LANGUAGE_VERSION ="javax.script.language_version";
99 * Causes the immediate execution of the script whose source is the String
100 * passed as the first argument. The script may be reparsed or recompiled before
104 * @param script The script to be executed by the script engine.
112 * script execution.
115 * @return The value returned from the execution of the script.
117 * @throws ScriptException if an error occurrs in script. ScriptEngines should create and throw
122 public Object eval(String script, ScriptContext context) throws ScriptException;
126 * Same as <code>eval(String, ScriptContext)</code> where the source of the script
129 * @param reader The source of the script to be executed by the script engine.
131 * @param context The <code>ScriptContext</code> passed to the script engine.
133 * @return The value returned from the execution of the script.
135 * @throws ScriptException if an error occurrs in script.
141 * Executes the specified script. The default <code>ScriptContext</code> for the <code>ScriptEngine</code>
144 * @param script The script language source to be executed.
146 * @return The value returned from the execution of the script.
148 * @throws ScriptException if error occurrs in script.
151 public Object eval(String script) throws ScriptException;
154 * Same as <code>eval(String)</code> except that the source of the script is
157 * @param reader The source of the script.
159 * @return The value returned by the script.
161 * @throws ScriptException if an error occurrs in script.
167 * Executes the script using the <code>Bindings</code> argument as the <code>ENGINE_SCOPE</code>
168 * <code>Bindings</code> of the <code>ScriptEngine</code> during the script execution. The
172 * mappings are unaltered by the script execution.
174 * @param script The source for the script.
176 * @param n The <code>Bindings</code> of attributes to be used for script execution.
178 * @return The value returned by the script.
180 * @throws ScriptException if an error occurrs in script.
183 public Object eval(String script, Bindings n) throws ScriptException;
186 * Same as <code>eval(String, Bindings)</code> except that the source of the script
189 * @param reader The source of the script.
192 * @return The value returned by the script.
301 * and Writers are used for script executions when no <code>ScriptContext</code> is specified.
309 * and Writers are used for script executions when no <code>ScriptContext</code> is specified.