public void referenceRemoved() { super.referenceRemoved(); for (RefClass subClass : getSubClasses()) { ((RefClassImpl) subClass).removeBase(this); } for (RefClass superClass : getBaseClasses()) { superClass.getSubClasses().remove(this); } }
@Override public void referenceRemoved() { if (getOwnerClass() != null) { ((RefClassImpl) getOwnerClass()).methodRemoved(this); } super.referenceRemoved(); for (RefMethod superMethod : getSuperMethods()) { superMethod.getDerivedMethods().remove(this); } for (RefMethod subMethod : getDerivedMethods()) { subMethod.getSuperMethods().remove(this); } ArrayList<RefElement> deletedRefs = new ArrayList<RefElement>(); for (RefParameter parameter : getParameters()) { getRefManager().removeRefElement(parameter, deletedRefs); } }