List of usage examples for javax.script ScriptEngine getFactory
public ScriptEngineFactory getFactory();
ScriptEngineFactory
for the class to which this ScriptEngine
belongs. From source file:tk.tomby.tedit.services.ScriptingManager.java
public static String getLanguage(String name) { ScriptEngine engine = manager.getEngineByExtension(getExtension(name)); if (engine != null) { return engine.getFactory().getLanguageName(); }/*from w w w . jav a 2 s . c om*/ return null; }