@Test public void testCliArray() { List<String> list = SymbolPathParser.parse( "namespace::ta<cli::array<wchar_t ,2>^,class System::Text::Encoding ^ __ptr64>"); List<String> expected = new ArrayList<>(); expected.add("namespace"); expected.add("ta<cli::array<wchar_t ,2>^,class System::Text::Encoding ^ __ptr64>"); 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);  }