@Test public void testGetMethodCallSyntax() { assertEquals("adder.add(42, b)", factory.getMethodCallSyntax("adder", "add", "42", "b")); }
@Override public String getMethodCallSyntax(String obj, String m, String... args) { String argStr = Arrays.toString(args); argStr = argStr.substring(1, argStr.length() - 1); return obj + "." + m + "(" + argStr + ")"; }
KotlinScriptEngineFactory implements ScriptEngineFactory { @Override public String getMethodCallSyntax(String obj, String m, String... args) { String argStr = Arrays.toString(args); argStr = argStr.substring(1, argStr.length() - 1); return obj + "." + m + "(" + argStr + ")"; } }
KotlinScriptEngineFactory implements ScriptEngineFactory { @Override public String getMethodCallSyntax(String obj, String m, String... args) { String argStr = Arrays.toString(args); argStr = argStr.substring(1, argStr.length() - 1); return obj + "." + m + "(" + argStr + ")"; }  }
KotlinScriptEngineFactory implements ScriptEngineFactory { @Override public String getMethodCallSyntax(String obj, String m, String... args) { String argStr = Arrays.toString(args); argStr = argStr.substring(1, argStr.length() - 1); return obj + "." + m + "(" + argStr + ")"; }  @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 String getMethodCallSyntax(String obj, String m, String... args) { String argStr = Arrays.toString(args); argStr = argStr.substring(1, argStr.length() - 1); return obj + "." + m + "(" + argStr + ")"; }  @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);  }