Exemplo n.º 1
0
  private Source findFolder(String prefix, BinCIType type) {
    CompilationUnit compilationUnit = type.getCompilationUnit();
    if (compilationUnit == null) {
      return null;
    }

    return findParent(prefix, compilationUnit.getSource());
  }
Exemplo n.º 2
0
  private void findFolders(String prefix, BinPackage aPackage, Set result) {
    for (Iterator i = aPackage.getAllTypes(); i.hasNext(); ) {
      BinCIType type = ((BinTypeRef) i.next()).getBinCIType();

      Source folder = findFolder(prefix, type);
      if (folder != null) {
        result.add(folder);
      } else {
        getSourcesInWrongFolders().add(type.getCompilationUnit().getSource());
      }
    }
  }