@Test public void testGetParameter() { assertEquals("1.0.2", factory.getParameter(ScriptEngine.LANGUAGE_VERSION)); }
@Override public Object getParameter(String key) { if (key.equals(ScriptEngine.ENGINE)) return getEngineName(); if (key.equals(ScriptEngine.ENGINE_VERSION)) return getEngineVersion(); if (key.equals(ScriptEngine.NAME)) return shortName; if (key.equals(ScriptEngine.LANGUAGE)) return getLanguageName(); if (key.equals(ScriptEngine.LANGUAGE_VERSION)) return getLanguageVersion(); return null; }
KotlinScriptEngineFactory implements ScriptEngineFactory { @Override public Object getParameter(String key) { if (key.equals(ScriptEngine.ENGINE)) return getEngineName(); if (key.equals(ScriptEngine.ENGINE_VERSION)) return getEngineVersion(); if (key.equals(ScriptEngine.NAME)) return shortName; if (key.equals(ScriptEngine.LANGUAGE)) return getLanguageName(); if (key.equals(ScriptEngine.LANGUAGE_VERSION)) return getLanguageVersion(); return null; } }
KotlinScriptEngineFactory implements ScriptEngineFactory { @Override public Object getParameter(String key) { if (key.equals(ScriptEngine.ENGINE)) return getEngineName(); if (key.equals(ScriptEngine.ENGINE_VERSION)) return getEngineVersion(); if (key.equals(ScriptEngine.NAME)) return shortName; if (key.equals(ScriptEngine.LANGUAGE)) return getLanguageName(); if (key.equals(ScriptEngine.LANGUAGE_VERSION)) return getLanguageVersion(); return null; }  }
KotlinScriptEngineFactory implements ScriptEngineFactory { @Override public Object getParameter(String key) { if (key.equals(ScriptEngine.ENGINE)) return getEngineName(); if (key.equals(ScriptEngine.ENGINE_VERSION)) return getEngineVersion(); if (key.equals(ScriptEngine.NAME)) return shortName; if (key.equals(ScriptEngine.LANGUAGE)) return getLanguageName(); if (key.equals(ScriptEngine.LANGUAGE_VERSION)) return getLanguageVersion(); return null; }  @Override String getEngineName(); @Override String getEngineVersion(); @Override String getLanguageName(); @Override String getLanguageVersion(); @Override List<String> getNames(); @Override List<String> getMimeTypes(); @Override List<String> getExtensions(); @Override ScriptEngine getScriptEngine(); @Override Object getParameter(String key); @Override String getMethodCallSyntax(String obj, String m, String... args); @Override String getOutputStatement(String toDisplay); @Override String getProgram(String... statements); }
KotlinScriptEngineFactory implements ScriptEngineFactory { @Override public Object getParameter(String key) { if (key.equals(ScriptEngine.ENGINE)) return getEngineName(); if (key.equals(ScriptEngine.ENGINE_VERSION)) return getEngineVersion(); if (key.equals(ScriptEngine.NAME)) return shortName; if (key.equals(ScriptEngine.LANGUAGE)) return getLanguageName(); if (key.equals(ScriptEngine.LANGUAGE_VERSION)) return getLanguageVersion(); return null; }  @Override String getEngineName(); @Override String getEngineVersion(); @Override String getLanguageName(); @Override String getLanguageVersion(); @Override List<String> getNames(); @Override List<String> getMimeTypes(); @Override List<String> getExtensions(); @Override ScriptEngine getScriptEngine(); @Override Object getParameter(String key); @Override String getMethodCallSyntax(String obj, String m, String... args); @Override String getOutputStatement(String toDisplay); @Override String getProgram(String... statements);  }