| 1 19 20 package edu.umd.cs.findbugs; 21 22 import java.io.IOException ; 23 24 import edu.umd.cs.findbugs.classfile.CheckedAnalysisException; 25 import edu.umd.cs.findbugs.classfile.IClassObserver; 26 import edu.umd.cs.findbugs.config.AnalysisFeatureSetting; 27 import edu.umd.cs.findbugs.config.UserPreferences; 28 import edu.umd.cs.findbugs.filter.FilterException; 29 30 39 public interface IFindBugsEngine { 40 41 46 public BugReporter getBugReporter(); 47 48 53 public void setBugReporter(BugReporter bugReporter); 54 55 60 public void setProject(Project project); 61 62 67 public Project getProject(); 68 69 75 public void setProgressCallback(FindBugsProgress progressCallback); 76 77 84 public void addFilter(String filterFileName, boolean include) 85 throws IOException , FilterException; 86 87 94 public void setUserPreferences(UserPreferences userPreferences); 95 96 101 public void addClassObserver(IClassObserver classObserver); 102 103 110 public void setClassScreener(IClassScreener classScreener); 111 112 118 public void setRelaxedReportingMode(boolean relaxedReportingMode); 119 120 125 public void enableTrainingOutput(String trainingOutputDir); 126 127 133 public void enableTrainingInput(String trainingInputDir); 134 135 140 public void setAnalysisFeatureSettings(AnalysisFeatureSetting[] settingList); 141 142 145 public String getReleaseName(); 146 147 150 public void setReleaseName(String releaseName); 151 152 158 public void setSourceInfoFile(String sourceInfoFile); 159 160 169 public void execute() throws java.io.IOException , InterruptedException ; 170 171 176 public String getCurrentClass(); 177 178 181 public int getBugCount(); 182 183 186 public int getErrorCount(); 187 188 191 public int getMissingClassCount(); 192 193 198 public UserPreferences getUserPreferences(); 199 200 206 public boolean emitTrainingOutput(); 207 208 213 public String getTrainingOutputDir(); 214 215 221 public boolean useTrainingInput(); 222 223 228 public String getTrainingInputDir(); 229 230 235 public void setScanNestedArchives(boolean scanNestedArchives); 236 237 243 public void setDetectorFactoryCollection(DetectorFactoryCollection detectorFactoryCollection); 244 } 245 | Popular Tags |