@Test public void testParseFunctions() throws Exception { FunctionLibrary lib = FunctionFactory.parseFunctions(new ConfigThingy("Functions", "Funktionen( func1 \"abc\")"), dialogLib, context, funcLib); assertTrue(lib.hasFunction("func1")); lib = FunctionFactory.parseFunctions(new ConfigThingy("Functions", "Funktionen( func1 (unknown \"abc\"))"), dialogLib, context, funcLib); assertFalse(lib.hasFunction("func1")); }
public static FunctionLibrary parseFunctions(ConfigThingy conf, DialogLibrary dialogLib, Map<Object, Object> context, FunctionLibrary baselib) { return parseFunctions(new FunctionLibrary(baselib), conf, "Funktionen", dialogLib, context); }
FunctionFactory { public static FunctionLibrary parseFunctions(ConfigThingy conf, DialogLibrary dialogLib, Map<Object, Object> context, FunctionLibrary baselib) { return parseFunctions(new FunctionLibrary(baselib), conf, "Funktionen", dialogLib, context); } }
FunctionFactory { public static FunctionLibrary parseFunctions(ConfigThingy conf, DialogLibrary dialogLib, Map<Object, Object> context, FunctionLibrary baselib) { return parseFunctions(new FunctionLibrary(baselib), conf, "Funktionen", dialogLib, context); } private  FunctionFactory(); }
FunctionFactory { public static FunctionLibrary parseFunctions(ConfigThingy conf, DialogLibrary dialogLib, Map<Object, Object> context, FunctionLibrary baselib) { return parseFunctions(new FunctionLibrary(baselib), conf, "Funktionen", dialogLib, context); } private  FunctionFactory(); static Function alwaysTrueFunction(); static Function parseGrandchildren(ConfigThingy conf,
      FunctionLibrary funcLib, DialogLibrary dialogLib, Map<Object, Object> context); static Function parseChildren(ConfigThingy conf, FunctionLibrary funcLib,
      DialogLibrary dialogLib, Map<Object, Object> context); static Function parse(ConfigThingy conf, FunctionLibrary funcLib,
      DialogLibrary dialogLib, Map<Object, Object> context); static FunctionLibrary parseFunctions(ConfigThingy conf,
      DialogLibrary dialogLib, Map<Object, Object> context, FunctionLibrary baselib); static FunctionLibrary parseFunctions(FunctionLibrary funcs,
      ConfigThingy conf, String section, DialogLibrary dialogLib,
      Map<Object, Object> context); static Map<String, Function> parseTrafos(ConfigThingy trafoConf, String nodeName, FunctionLibrary funcLib, DialogLibrary dialogLib,
      Map<Object, Object> context); }
FunctionFactory { public static FunctionLibrary parseFunctions(ConfigThingy conf, DialogLibrary dialogLib, Map<Object, Object> context, FunctionLibrary baselib) { return parseFunctions(new FunctionLibrary(baselib), conf, "Funktionen", dialogLib, context); } private  FunctionFactory(); static Function alwaysTrueFunction(); static Function parseGrandchildren(ConfigThingy conf,
      FunctionLibrary funcLib, DialogLibrary dialogLib, Map<Object, Object> context); static Function parseChildren(ConfigThingy conf, FunctionLibrary funcLib,
      DialogLibrary dialogLib, Map<Object, Object> context); static Function parse(ConfigThingy conf, FunctionLibrary funcLib,
      DialogLibrary dialogLib, Map<Object, Object> context); static FunctionLibrary parseFunctions(ConfigThingy conf,
      DialogLibrary dialogLib, Map<Object, Object> context, FunctionLibrary baselib); static FunctionLibrary parseFunctions(FunctionLibrary funcs,
      ConfigThingy conf, String section, DialogLibrary dialogLib,
      Map<Object, Object> context); static Map<String, Function> parseTrafos(ConfigThingy trafoConf, String nodeName, FunctionLibrary funcLib, DialogLibrary dialogLib,
      Map<Object, Object> context);  }