public Collection getSourceFiles() { SortedSet sourceFileDatas = new TreeSet(); lock.lock(); try { Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData) iter.next(); sourceFileDatas.addAll(packageData.getSourceFiles()); } } finally { lock.unlock(); } return sourceFileDatas; }
public Collection getSourceFiles() { SortedSet sourceFileDatas = new TreeSet(); lock.lock(); try { Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData) iter.next(); sourceFileDatas.addAll(packageData.getSourceFiles()); } } finally { lock.unlock(); } return sourceFileDatas; }
public Collection getSourceFiles() { SortedSet sourceFileDatas = new TreeSet(); lock.lock(); try { Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); sourceFileDatas.addAll(packageData.getSourceFiles()); } } finally { lock.unlock(); } return sourceFileDatas; }
private void dumpSourceFiles(PackageData packageData) { println("<classes>"); increaseIndentation(); Iterator it = packageData.getSourceFiles().iterator(); while (it.hasNext()) { dumpClasses((SourceFileData)it.next()); } decreaseIndentation(); println("</classes>"); }
private void dumpSourceFiles(PackageData packageData) { println("<classes>"); increaseIndentation(); Iterator it = packageData.getSourceFiles().iterator(); while (it.hasNext()) { dumpClasses((SourceFileData) it.next()); } decreaseIndentation(); println("</classes>"); }
private void dumpSourceFiles(PackageData packageData) { println("<classes>"); increaseIndentation(); Iterator it = packageData.getSourceFiles().iterator(); while (it.hasNext()) { dumpClasses((SourceFileData) it.next()); } decreaseIndentation(); println("</classes>"); }
private Complexity getCCNForPackageInternal(PackageData packageData) { // Return CCN if computed earlier Complexity cachedCCN = (Complexity) packageCNNCache.get( packageData.getName()); if( cachedCCN!=null) { return cachedCCN; } // Compute CCN for all source files inside package Complexity act = new Complexity(); for( Iterator it = packageData.getSourceFiles().iterator(); it.hasNext();) { SourceFileData sourceData = (SourceFileData)it.next(); act.add( getCCNForSourceFileNameInternal( sourceData.getName())); } // Cache result and return it packageCNNCache.put( packageData.getName(), act); return act; }
private Complexity getCCNForPackageInternal(PackageData packageData) { // Return CCN if computed earlier Complexity cachedCCN = (Complexity) packageCNNCache.get(packageData .getName()); if (cachedCCN != null) { return cachedCCN; } // Compute CCN for all source files inside package Complexity act = new Complexity(); for (Iterator it = packageData.getSourceFiles().iterator(); it .hasNext();) { SourceFileData sourceData = (SourceFileData) it.next(); act.add(getCCNForSourceFileNameInternal(sourceData.getName())); } // Cache result and return it packageCNNCache.put(packageData.getName(), act); return act; }
private Complexity getCCNForPackageInternal(PackageData packageData) { // Return CCN if computed earlier Complexity cachedCCN = (Complexity) packageCNNCache.get(packageData .getName()); if (cachedCCN != null) { return cachedCCN; } // Compute CCN for all source files inside package Complexity act = new Complexity(); for (Iterator it = packageData.getSourceFiles().iterator(); it .hasNext();) { SourceFileData sourceData = (SourceFileData) it.next(); act.add(getCCNForSourceFileNameInternal(sourceData.getName())); } // Cache result and return it packageCNNCache.put(packageData.getName(), act); return act; }
.getChild(""); if (defaultPackage != null) { sourceFiles = defaultPackage.getSourceFiles(); } else { sourceFiles = new TreeSet(); sourceFiles = packageData.getSourceFiles();
} else { filename = "frame-sourcefiles-" + packageData.getName() + ".html"; sourceFiles = packageData.getSourceFiles();
sourceFiles = packageData.getSourceFiles();
} else { filename = "frame-sourcefiles-" + packageData.getName() + ".html"; sourceFiles = packageData.getSourceFiles();
if (defaultPackage != null) sourceFiles = defaultPackage.getSourceFiles(); sourceFiles = packageData.getSourceFiles();
.getChild(""); if (defaultPackage != null) { sourceFiles = defaultPackage.getSourceFiles(); } else { sourceFiles = new TreeSet(); sourceFiles = packageData.getSourceFiles();
void buildSourceFileDataHelpers() { for( Object o : getData().getSourceFiles() ) { SourceFileData sfd = (SourceFileData) o; SourceFileData dsfd = null; if ( getSamePackageData() != null ) { for (Object osfd : getSamePackageData().getSourceFiles()) { SourceFileData xsfd = (SourceFileData) osfd; if (xsfd.getName().equals(sfd.getName())) { dsfd = xsfd; break; } } } try { SourceFileDataPair sfdp = getFactory().makeSourceFileDataPair( sfd, dsfd, this ); addChild( sfdp ); } catch( RuntimeException e ) { throw new RuntimeException( "Could not create SourceFileDataPair " + sfd.getName(), e ); } } }