@Test public void testExecute() throws Exception { Concat c = new Concat(); assertEquals("abc D e><>123", c.execute(rhsFuncContext, Symbols.asList(syms, "a", "b", "c D e>", "<>", 1, 2, 3)).asString().getValue()); }
@Override public Symbol execute(RhsFunctionContext context, List<Symbol> arguments) throws RhsFunctionException { return context.getSymbols().createString(concat(arguments)); }
Concat extends AbstractRhsFunctionHandler { @Override public Symbol execute(RhsFunctionContext context, List<Symbol> arguments) throws RhsFunctionException { return context.getSymbols().createString(concat(arguments)); } }
Concat extends AbstractRhsFunctionHandler { @Override public Symbol execute(RhsFunctionContext context, List<Symbol> arguments) throws RhsFunctionException { return context.getSymbols().createString(concat(arguments)); } Concat(); }
Concat extends AbstractRhsFunctionHandler { @Override public Symbol execute(RhsFunctionContext context, List<Symbol> arguments) throws RhsFunctionException { return context.getSymbols().createString(concat(arguments)); } Concat(); static String concat(List<Symbol> arguments); @Override Symbol execute(RhsFunctionContext context, List<Symbol> arguments); }
Concat extends AbstractRhsFunctionHandler { @Override public Symbol execute(RhsFunctionContext context, List<Symbol> arguments) throws RhsFunctionException { return context.getSymbols().createString(concat(arguments)); } Concat(); static String concat(List<Symbol> arguments); @Override Symbol execute(RhsFunctionContext context, List<Symbol> arguments);  }