@Test public void testParseValue() throws Exception { Function f = FunctionFactory.parse(new ConfigThingy("VALUE", "\"value1\" \"value2\""), funcLib, dialogLib, context); assertTrue(f instanceof ValueFunction); }
private static Function parseVALUE(ConfigThingy conf, FunctionLibrary funcLib, DialogLibrary dialogLib, Map<Object, Object> context) { Function valueNameFun; try { valueNameFun = parse(conf.getFirstChild(), funcLib, dialogLib, context); } catch (NodeNotFoundException e) { throw new ConfigurationErrorException(L.m( "Funktion vom Typ \"VALUE\" erfordert genau 1 Parameter, nicht %1", conf.count()), e); } return new ValueFunction(valueNameFun.getString(new Values.None())); }
FunctionFactory { private static Function parseVALUE(ConfigThingy conf, FunctionLibrary funcLib, DialogLibrary dialogLib, Map<Object, Object> context) { Function valueNameFun; try { valueNameFun = parse(conf.getFirstChild(), funcLib, dialogLib, context); } catch (NodeNotFoundException e) { throw new ConfigurationErrorException(L.m( "Funktion vom Typ \"VALUE\" erfordert genau 1 Parameter, nicht %1", conf.count()), e); } return new ValueFunction(valueNameFun.getString(new Values.None())); } }
FunctionFactory { private static Function parseVALUE(ConfigThingy conf, FunctionLibrary funcLib, DialogLibrary dialogLib, Map<Object, Object> context) { Function valueNameFun; try { valueNameFun = parse(conf.getFirstChild(), funcLib, dialogLib, context); } catch (NodeNotFoundException e) { throw new ConfigurationErrorException(L.m( "Funktion vom Typ \"VALUE\" erfordert genau 1 Parameter, nicht %1", conf.count()), e); } return new ValueFunction(valueNameFun.getString(new Values.None())); } private  FunctionFactory(); }
FunctionFactory { private static Function parseVALUE(ConfigThingy conf, FunctionLibrary funcLib, DialogLibrary dialogLib, Map<Object, Object> context) { Function valueNameFun; try { valueNameFun = parse(conf.getFirstChild(), funcLib, dialogLib, context); } catch (NodeNotFoundException e) { throw new ConfigurationErrorException(L.m( "Funktion vom Typ \"VALUE\" erfordert genau 1 Parameter, nicht %1", conf.count()), e); } return new ValueFunction(valueNameFun.getString(new Values.None())); } 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 { private static Function parseVALUE(ConfigThingy conf, FunctionLibrary funcLib, DialogLibrary dialogLib, Map<Object, Object> context) { Function valueNameFun; try { valueNameFun = parse(conf.getFirstChild(), funcLib, dialogLib, context); } catch (NodeNotFoundException e) { throw new ConfigurationErrorException(L.m( "Funktion vom Typ \"VALUE\" erfordert genau 1 Parameter, nicht %1", conf.count()), e); } return new ValueFunction(valueNameFun.getString(new Values.None())); } 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);  }