Exemplo n.º 1
0
  private void addToAllChildren(LibMethodHolder addLmh) {

    LibClassHolder containingClass = addLmh.getContainingClass();
    if (containingClass.getAllChildTypes() == null) {
      containingClass.setAllChildTypes(
          RepositoryAnalyzer.getInstance().getAllChildTypes(containingClass.getName()));
    }

    for (String childClass : containingClass.getAllChildTypes()) {
      LibMethodHolder childLmh =
          RepositoryAnalyzer.getInstance().getEqviMethodDeclaration(childClass, addLmh);
      if (childLmh != null) {
        methodsInvoked.add(childLmh);
        childLmh.getCallingMethods().add(this);
      }
    }
  }