MCPcopy Create free account
hub / github.com/FabricMC/Matcher / unmatch

Method unmatch

src/main/java/matcher/Matcher.java:404–424  ·  view source on GitHub ↗
(ClassInstance cls)

Source from the content-addressed store, hash-verified

402 }
403
404 public void unmatch(ClassInstance cls) {
405 if (cls == null) throw new NullPointerException("null class");
406 if (cls.getMatch() == null) return;
407
408 LOGGER.debug("Unmatching class {} (was {}){}", cls, cls.getMatch(), (cls.hasMappedName() ? " ("+cls.getName(NameType.MAPPED_PLAIN)+")" : ""));
409
410 cls.getMatch().setMatch(null);
411 cls.setMatch(null);
412
413 unmatchMembers(cls);
414
415 if (cls.isArray()) {
416 unmatch(cls.getElementClass());
417 } else {
418 for (ClassInstance array : cls.getArrays()) {
419 unmatch(array);
420 }
421 }
422
423 env.getCache().clear();
424 }
425
426 public void unmatch(MemberInstance<?> m) {
427 if (m == null) throw new NullPointerException("null member");

Callers 4

unmatchClassMethod · 0.80
unmatchMemberMethod · 0.80
unmatchVarMethod · 0.80
readMethod · 0.80

Calls 13

unmatchMembersMethod · 0.95
isArrayMethod · 0.80
getElementClassMethod · 0.80
getArraysMethod · 0.80
getCacheMethod · 0.80
getVarsMethod · 0.80
getMatchMethod · 0.65
hasMappedNameMethod · 0.65
getNameMethod · 0.65
setMatchMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected