本文整理汇总了Java中edu.umd.cs.findbugs.model.ClassFeatureSet类的典型用法代码示例。如果您正苦于以下问题:Java ClassFeatureSet类的具体用法?Java ClassFeatureSet怎么用?Java ClassFeatureSet使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ClassFeatureSet类属于edu.umd.cs.findbugs.model包,在下文中一共展示了ClassFeatureSet类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SortedBugCollection
import edu.umd.cs.findbugs.model.ClassFeatureSet; //导入依赖的package包/类
public SortedBugCollection(ProjectStats projectStats, Comparator<BugInstance> comparator, Project project) {
this.projectStats = projectStats;
this.comparator = comparator;
this.project = project;
bugSet = new TreeSet<BugInstance>(comparator);
errorList = new BoundedLinkedHashSet();
missingClassSet = new TreeSet<String>();
summaryHTML = null;
classFeatureSetMap = new TreeMap<String, ClassFeatureSet>();
sequence = 0L;
appVersionList = new LinkedList<AppVersion>();
releaseName = "";
timestamp = -1L;
}
示例2: writeEpilogue
import edu.umd.cs.findbugs.model.ClassFeatureSet; //导入依赖的package包/类
public void writeEpilogue(XMLOutput xmlOutput) throws IOException {
if (withMessages) {
writeBugCategories(xmlOutput);
writeBugPatterns(xmlOutput);
writeBugCodes(xmlOutput);
}
// Errors, missing classes
if (!minimalXML)
emitErrors(xmlOutput);
if (!earlyStats && !minimalXML) {
// Statistics
getProjectStats().writeXML(xmlOutput, withMessages);
}
// // Class and method hashes
// xmlOutput.openTag(CLASS_HASHES_ELEMENT_NAME);
// for (Iterator<ClassHash> i = classHashIterator(); i.hasNext();) {
// ClassHash classHash = i.next();
// classHash.writeXML(xmlOutput);
// }
// xmlOutput.closeTag(CLASS_HASHES_ELEMENT_NAME);
// Class features
xmlOutput.openTag("ClassFeatures");
for (Iterator<ClassFeatureSet> i = classFeatureSetIterator(); i.hasNext();) {
ClassFeatureSet classFeatureSet = i.next();
classFeatureSet.writeXML(xmlOutput);
}
xmlOutput.closeTag("ClassFeatures");
// AppVersions
xmlOutput.openTag(HISTORY_ELEMENT_NAME);
for (Iterator<AppVersion> i = appVersionIterator(); i.hasNext();) {
AppVersion appVersion = i.next();
appVersion.writeXML(xmlOutput);
}
xmlOutput.closeTag(HISTORY_ELEMENT_NAME);
// Summary HTML
if (REPORT_SUMMARY_HTML) {
String html = getSummaryHTML();
if (html != null && !html.equals("")) {
xmlOutput.openTag(SUMMARY_HTML_ELEMENT_NAME);
xmlOutput.writeCDATA(html);
xmlOutput.closeTag(SUMMARY_HTML_ELEMENT_NAME);
}
}
xmlOutput.closeTag(ROOT_ELEMENT_NAME);
}
示例3: getClassFeatureSet
import edu.umd.cs.findbugs.model.ClassFeatureSet; //导入依赖的package包/类
public ClassFeatureSet getClassFeatureSet(String className) {
return classFeatureSetMap.get(className);
}
示例4: setClassFeatureSet
import edu.umd.cs.findbugs.model.ClassFeatureSet; //导入依赖的package包/类
public void setClassFeatureSet(ClassFeatureSet classFeatureSet) {
classFeatureSetMap.put(classFeatureSet.getClassName(), classFeatureSet);
}
示例5: classFeatureSetIterator
import edu.umd.cs.findbugs.model.ClassFeatureSet; //导入依赖的package包/类
public Iterator<ClassFeatureSet> classFeatureSetIterator() {
return classFeatureSetMap.values().iterator();
}
示例6: setClassFeatureSet
import edu.umd.cs.findbugs.model.ClassFeatureSet; //导入依赖的package包/类
public void setClassFeatureSet(ClassFeatureSet classFeatureSet);