MCPcopy Create free account
hub / github.com/GraxCode/zelixkiller / getParents

Method getParents

src/me/lpk/util/ParentUtils.java:269–279  ·  view source on GitHub ↗
(MappedClass m)

Source from the content-addressed store, hash-verified

267 }
268
269 private static List<String> getParents(MappedClass m) {
270 List<String> list = new ArrayList<String>();
271 while (m != null) {
272 list.add(m.getOriginalName());
273 for (MappedClass i : m.getInterfaces()) {
274 list.addAll(getParents(i));
275 }
276 m = m.getParent();
277 }
278 return list;
279 }
280
281 public static boolean isChild(MappedClass parent, MappedClass mc) {
282 return findCommonParent(mc, parent) == parent;

Callers 1

findCommonParentMethod · 0.95

Calls 3

getOriginalNameMethod · 0.80
getInterfacesMethod · 0.80
getParentMethod · 0.45

Tested by

no test coverage detected