MapInspector { public static List<String> listInnnerClasses(String className) { List<String> classList = new ArrayList<>(); extractInnerClass(classList, className); return classList; } MapInspector(); void inspect(Map<String, Object> map); void inspect(Map<String, Object> map, boolean clear); void inspect(Reader jsonReader); void inspect(Reader jsonReader, boolean clear); Deque<Map<String, Object>> getStack(); String simplifyPathExpression(String path); String simplifyPathExpressionKeepArrayIndex(String path); Map<String, String> getStackFlatten(); static List<String> listInnnerClasses(String className); void resetStack(); static final int ENCODED_ELEMENT_MAP_SIZE; static final String TAG_OBJECT; }
@Test public void testListInnnerClasses() throws Exception { String classname = "DvInterval<DvCount>"; List<String> list = MapInspector.listInnnerClasses(classname); assertEquals("DvInterval", list.get(0)); assertEquals("DvCount", list.get(1)); classname = "Type1<Type2<Type3>>"; list = MapInspector.listInnnerClasses(classname); assertEquals("Type1", list.get(0)); assertEquals("Type2", list.get(1)); assertEquals("Type3", list.get(2)); }