@Test public void testCanEvalScriptCode() throws Exception { final String result = command.execute(DefaultSoarCommandContext.empty(), new String[] { "script", "javascript", "'hi there'" }); assertEquals("hi there", result); }
@Override public String execute(SoarCommandContext commandContext, String[] args) throws SoarException { return Utils.parseAndRun(new Script(context, engines, manager), args); }
ScriptCommand implements SoarCommand { @Override public String execute(SoarCommandContext commandContext, String[] args) throws SoarException { return Utils.parseAndRun(new Script(context, engines, manager), args); } }
ScriptCommand implements SoarCommand { @Override public String execute(SoarCommandContext commandContext, String[] args) throws SoarException { return Utils.parseAndRun(new Script(context, engines, manager), args); } ScriptCommand(Adaptable context); }
ScriptCommand implements SoarCommand { @Override public String execute(SoarCommandContext commandContext, String[] args) throws SoarException { return Utils.parseAndRun(new Script(context, engines, manager), args); } ScriptCommand(Adaptable context); @Override String execute(SoarCommandContext commandContext, String[] args); @Override Object getCommand(); }
ScriptCommand implements SoarCommand { @Override public String execute(SoarCommandContext commandContext, String[] args) throws SoarException { return Utils.parseAndRun(new Script(context, engines, manager), args); } ScriptCommand(Adaptable context); @Override String execute(SoarCommandContext commandContext, String[] args); @Override Object getCommand();  }