Lines Matching refs:extension
41 * as well as utility methods which look up factories on the basis of language name, file extension
73 * bundled with the platform and that are in the usual extension
250 * Look up and create a <code>ScriptEngine</code> for a given extension. The algorithm
253 * given extension using <code>registerEngineExtension</code>.
254 * @param extension The given extension
255 * @return The engine to handle scripts with this extension. Returns <code>null</code>
257 * @throws NullPointerException if extension is null.
259 public ScriptEngine getEngineByExtension(String extension) {
260 if (extension == null) throw new NullPointerException();
261 //look for registered extension first
263 if (null != (obj = extensionAssociations.get(extension))) {
283 if (extension.equals(ext)) {
386 * Registers a <code>ScriptEngineFactory</code> to handle an extension.
389 * @param extension The extension type to be associated with the
391 * @param factory The class to associate with the given extension.
394 public void registerEngineExtension(String extension, ScriptEngineFactory factory) {
395 if (extension == null || factory == null) throw new NullPointerException();
396 extensionAssociations.put(extension, factory);
405 /** Map of script file extension to script engine factory. */