@Test public void parseFunctionWithScalarOrArrayArguments4() { List<Object> parameters = FunctionParser.parseFunctionWithScalarOrArrayArguments("foo(\"a\", \"b\", \"c\")", "error"); assertThat(parameters.get(0), equalTo((Object) "foo")); assertThat(parameters.get(1), equalTo((Object) Arrays.asList("a", "b", "c"))); }
public static List<Object> parseFunctionWithScalarOrArrayArguments(String string, String errorMessage) { return parseFunctionWithScalarOrArrayArguments("(\\w+)", string, errorMessage); }
FunctionParser { public static List<Object> parseFunctionWithScalarOrArrayArguments(String string, String errorMessage) { return parseFunctionWithScalarOrArrayArguments("(\\w+)", string, errorMessage); } }
FunctionParser { public static List<Object> parseFunctionWithScalarOrArrayArguments(String string, String errorMessage) { return parseFunctionWithScalarOrArrayArguments("(\\w+)", string, errorMessage); }  }
FunctionParser { public static List<Object> parseFunctionWithScalarOrArrayArguments(String string, String errorMessage) { return parseFunctionWithScalarOrArrayArguments("(\\w+)", string, errorMessage); }  static List<Object> parseFunctionWithScalarOrArrayArguments(String string, String errorMessage); static List<Object> parseFunctionWithScalarOrArrayArguments(String nameRegex, String string, String errorMessage); static Object asScalarOrList(List<Object> objects); static ListDouble asListDouble(List<Object> objects); static List<String> asListString(List<Object> objects); static List<Object> parseFunctionAnyParameter(String string); static List<Object> parseFunctionAnyParameter(String nameRegex, String string); }
FunctionParser { public static List<Object> parseFunctionWithScalarOrArrayArguments(String string, String errorMessage) { return parseFunctionWithScalarOrArrayArguments("(\\w+)", string, errorMessage); }  static List<Object> parseFunctionWithScalarOrArrayArguments(String string, String errorMessage); static List<Object> parseFunctionWithScalarOrArrayArguments(String nameRegex, String string, String errorMessage); static Object asScalarOrList(List<Object> objects); static ListDouble asListDouble(List<Object> objects); static List<String> asListString(List<Object> objects); static List<Object> parseFunctionAnyParameter(String string); static List<Object> parseFunctionAnyParameter(String nameRegex, String string);  }