@Test public void testNamespaceInFunctionArgument() { List<String> list = SymbolPathParser.parse( "Foo7::Bar5(class Foo1d::Bar1,int)"); List<String> expected = new ArrayList<>(); expected.add("Foo7"); expected.add("Bar5(class Foo1d::Bar1,int)"); assertListEqualOrdered(expected, list); }
public static List<String> parse(String name) { if (StringUtils.isBlank(name)) { throw new IllegalArgumentException( "Symbol list must contain at least one symbol name!"); } if (name.indexOf(Namespace.NAMESPACE_DELIMITER) == -1) { List<String> list = new ArrayList<>(); list.add(name); return list; } return naiveParse(name); }
SymbolPathParser { public static List<String> parse(String name) { if (StringUtils.isBlank(name)) { throw new IllegalArgumentException( "Symbol list must contain at least one symbol name!"); } if (name.indexOf(Namespace.NAMESPACE_DELIMITER) == -1) { List<String> list = new ArrayList<>(); list.add(name); return list; } return naiveParse(name); } }
SymbolPathParser { public static List<String> parse(String name) { if (StringUtils.isBlank(name)) { throw new IllegalArgumentException( "Symbol list must contain at least one symbol name!"); } if (name.indexOf(Namespace.NAMESPACE_DELIMITER) == -1) { List<String> list = new ArrayList<>(); list.add(name); return list; } return naiveParse(name); }  }
SymbolPathParser { public static List<String> parse(String name) { if (StringUtils.isBlank(name)) { throw new IllegalArgumentException( "Symbol list must contain at least one symbol name!"); } if (name.indexOf(Namespace.NAMESPACE_DELIMITER) == -1) { List<String> list = new ArrayList<>(); list.add(name); return list; } return naiveParse(name); }  static List<String> parse(String name); }
SymbolPathParser { public static List<String> parse(String name) { if (StringUtils.isBlank(name)) { throw new IllegalArgumentException( "Symbol list must contain at least one symbol name!"); } if (name.indexOf(Namespace.NAMESPACE_DELIMITER) == -1) { List<String> list = new ArrayList<>(); list.add(name); return list; } return naiveParse(name); }  static List<String> parse(String name);  }