org.codehaus.mojo.findbugs.XDocsReporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of findbugs-maven-plugin Show documentation
Show all versions of findbugs-maven-plugin Show documentation
This Plug-In generates reports based on the FindBugs Library
//
// Generated stub from file:/C:/svnWork/findbugs-maven-plugin/target/checkout/src/main/groovy/org/codehaus/mojo/findbugs/XDocsReporter.groovy
//
package org.codehaus.mojo.findbugs;
import java.lang.*;
import java.io.*;
import java.net.*;
import java.util.*;
import groovy.lang.*;
import groovy.util.*;
import org.apache.maven.plugin.logging.Log;
import org.apache.maven.project.MavenProject;
import edu.umd.cs.findbugs.AbstractBugReporter;
import edu.umd.cs.findbugs.BugInstance;
import edu.umd.cs.findbugs.BugPattern;
import edu.umd.cs.findbugs.SortedBugCollection;
import edu.umd.cs.findbugs.SourceLineAnnotation;
import edu.umd.cs.findbugs.TextUIBugReporter;
import edu.umd.cs.findbugs.classfile.ClassDescriptor;
/**
* The reporter controls the generation of the FindBugs report. It contains call back methods which gets called by
* FindBugs if a bug is found.
*
* @author Garvin LeClaire
* @version $Id: XDocsReporter.groovy 7078 2008-05-29 04:10:38Z gleclaire $
*/
public class XDocsReporter
extends TextUIBugReporter
{
/**
* The key to get the value if the line number is not available.
*/
static final private java.lang.String NOLINE_KEY = null;
static final public java.lang.String getNOLINE_KEY() {
throw new InternalError("Stubbed method");
}
/**
* The sink to write the report to.
*/
private FindbugsXdocSink sink = null;
public void setSink(FindbugsXdocSink value) {
throw new InternalError("Stubbed method");
}
/**
* The bundle to get the messages from.
*/
private ResourceBundle resourceBundle = null;
public ResourceBundle getResourceBundle() {
throw new InternalError("Stubbed method");
}
public void setResourceBundle(ResourceBundle value) {
throw new InternalError("Stubbed method");
}
/**
* The logger to write logs to.
*/
private Log log = null;
public Log getLog() {
throw new InternalError("Stubbed method");
}
public void setLog(Log value) {
throw new InternalError("Stubbed method");
}
/**
* The threshold of bugs severity.
*/
private ThresholdParameter threshold = null;
public ThresholdParameter getThreshold() {
throw new InternalError("Stubbed method");
}
public void setThreshold(ThresholdParameter value) {
throw new InternalError("Stubbed method");
}
/**
* The used effort for searching bugs.
*/
private EffortParameter effort = null;
public EffortParameter getEffort() {
throw new InternalError("Stubbed method");
}
public void setEffort(EffortParameter value) {
throw new InternalError("Stubbed method");
}
/**
* The name of the current class which is analysed by FindBugs.
*/
private java.lang.String currentClassName = null;
public java.lang.String getCurrentClassName() {
throw new InternalError("Stubbed method");
}
public void setCurrentClassName(java.lang.String value) {
throw new InternalError("Stubbed method");
}
/**
* Signals if the report for the current class is opened.
*/
private boolean isCurrentClassReportOpened = false;
public boolean getIsCurrentClassReportOpened() {
throw new InternalError("Stubbed method");
}
public boolean isIsCurrentClassReportOpened() {
throw new InternalError("Stubbed method");
}
public void setIsCurrentClassReportOpened(boolean value) {
throw new InternalError("Stubbed method");
}
/**
* The running total of bugs reported.
*/
private int bugCount = 0;
public int getBugCount() {
throw new InternalError("Stubbed method");
}
public void setBugCount(int value) {
throw new InternalError("Stubbed method");
}
/**
* The running total of missing classes reported.
*/
private int missingClassCount = 0;
public int getMissingClassCount() {
throw new InternalError("Stubbed method");
}
public void setMissingClassCount(int value) {
throw new InternalError("Stubbed method");
}
/**
* The running total of files analyzed.
*/
private int fileCount = 0;
public int getFileCount() {
throw new InternalError("Stubbed method");
}
public void setFileCount(int value) {
throw new InternalError("Stubbed method");
}
/**
* The Collection of Bugs and Error collected during analysis.
*/
private SortedBugCollection bugCollection = null;
public SortedBugCollection getBugCollection() {
throw new InternalError("Stubbed method");
}
public void setBugCollection(SortedBugCollection value) {
throw new InternalError("Stubbed method");
}
/**
* The output Writer stream.
*/
private Writer outputWriter = null;
public Writer getOutputWriter() {
throw new InternalError("Stubbed method");
}
public void setOutputWriter(Writer value) {
throw new InternalError("Stubbed method");
}
/**
* The MavenProject Object
*/
private MavenProject mavenProject = null;
public MavenProject getMavenProject() {
throw new InternalError("Stubbed method");
}
public void setMavenProject(MavenProject value) {
throw new InternalError("Stubbed method");
}
private XDocsReporter(java.lang.Void void1, java.lang.Void void2, java.lang.Void void3) {
throw new InternalError("Stubbed method");
}
/**
* Default constructor.
*
* @param realBugReporter
the BugReporter to Delegate
*/
public XDocsReporter(MavenProject mavenProject) {
this((java.lang.Void)null, (java.lang.Void)null, (java.lang.Void)null);
throw new InternalError("Stubbed method");
}
/**
* @see edu.umd.cs.findbugs.BugReporter#finish()
*/
public void finish() {
throw new InternalError("Stubbed method");
}
/**
* @return the sink
*/
public FindbugsXdocSink getSink() {
throw new InternalError("Stubbed method");
}
public void logError(java.lang.String message) {
throw new InternalError("Stubbed method");
}
public void logError(java.lang.String message, Throwable e) {
throw new InternalError("Stubbed method");
}
/**
* Observe a class.
*
* @param classDescriptor
The Class to Observe
* @see edu.umd.cs.findbugs.classfile.IClassObserver #observeClass(edu.umd.cs.findbugs.classfile.ClassDescriptor)
*/
public void observeClass(ClassDescriptor classDescriptor) {
throw new InternalError("Stubbed method");
}
public void reportMissingClass(ClassDescriptor classDescriptor) {
throw new InternalError("Stubbed method");
}
public void reportMissingClass(ClassNotFoundException ex) {
throw new InternalError("Stubbed method");
}
/**
* Print the bug collection to a line in the table
*
* @param bugInstance
the bug to print
*/
protected void printBug(BugInstance bugInstance) {
throw new InternalError("Stubbed method");
}
/**
* Closes the class report section.
*/
protected void closeClassReportSection() {
throw new InternalError("Stubbed method");
}
/**
* Returns the threshold string value for the integer input.
*
* @param thresholdValue
The ThresholdValue integer to evaluate.
* @return The string valueof the Threshold object.
*/
protected java.lang.String evaluateThresholdParameter(int thresholdValue) {
throw new InternalError("Stubbed method");
}
/**
* Gets the Findbugs Version of the report.
*
* @return The Findbugs Version used on the report.
*/
protected java.lang.String getFindBugsVersion() {
throw new InternalError("Stubbed method");
}
/**
* Closes the class report section.
*/
protected void printErrors() {
throw new InternalError("Stubbed method");
}
/**
* Output Source Directories.
*/
protected void printSource() {
throw new InternalError("Stubbed method");
}
/**
* Return the value to display. If FindBugs does not provide a line number, a default message is returned. The line
* number otherwise.
*
* @param line
The line to get the value from.
* @return The line number the bug appears or a statement that there is no source line available.
*/
protected java.lang.String valueForLine(SourceLineAnnotation line) {
throw new InternalError("Stubbed method");
}
/**
* @param bugInstance
The bug to report
* @see edu.umd.cs.findbugs.AbstractBugReporter #doReportBug(edu.umd.cs.findbugs.BugInstance)
*/
protected void doReportBug(BugInstance bugInstance) {
throw new InternalError("Stubbed method");
}
public groovy.lang.MetaClass getMetaClass() {
throw new InternalError("Stubbed method");
}
public void setMetaClass(groovy.lang.MetaClass metaClass) {
throw new InternalError("Stubbed method");
}
public java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args) {
throw new InternalError("Stubbed method");
}
public java.lang.Object getProperty(java.lang.String name) {
throw new InternalError("Stubbed method");
}
public void setProperty(java.lang.String name, java.lang.Object value) {
throw new InternalError("Stubbed method");
}
}