|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.util.BuildResult
hudson.plugins.findbugs.util.AnnotationsBuildResult
public abstract class AnnotationsBuildResult
Common base class for build results that persist annotations. Provides loading and saving of annotations (all, new, and fixed) and delta computation.
| Field Summary |
|---|
| Fields inherited from class hudson.plugins.findbugs.util.BuildResult |
|---|
XSTREAM |
| Constructor Summary | |
|---|---|
AnnotationsBuildResult(hudson.model.AbstractBuild<?,?> build,
ParserResult result)
Creates a new instance of AnnotationsBuildResult. |
|
AnnotationsBuildResult(hudson.model.AbstractBuild<?,?> build,
ParserResult result,
AnnotationsBuildResult previous)
Creates a new instance of AnnotationsBuildResult. |
|
| Method Summary | |
|---|---|
void |
doStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates a PNG image for high/normal/low distribution of the specified object. |
AnnotationContainer |
getContainer()
Gets the annotation container. |
int |
getDelta()
Returns the delta. |
java.lang.Object |
getDynamic(java.lang.String link,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Returns the dynamic result of the selection element. |
java.util.Collection<FileAnnotation> |
getFixedWarnings()
Returns the fixed warnings of this build. |
java.util.Collection<java.lang.String> |
getModules()
Returns the modules of this build result. |
java.util.Collection<FileAnnotation> |
getNewWarnings()
Returns the new warnings of this build. |
int |
getNumberOfAnnotations()
Gets the number of warnings. |
int |
getNumberOfAnnotations(Priority priority)
Returns the total number of warnings of the specified priority for this object. |
int |
getNumberOfFixedWarnings()
Gets the number of fixed warnings. |
int |
getNumberOfModules()
Returns the number of modules in this project. |
int |
getNumberOfNewWarnings()
Gets the number of new warnings. |
protected abstract JavaProject |
getPreviousResult()
Returns the results of the previous build. |
Priority[] |
getPriorities()
Returns all possible priorities. |
JavaProject |
getProject()
Returns the associated project of this result. |
long |
getZeroWarningsHighScore()
Returns the maximum period with zero warnings in a build. |
int |
getZeroWarningsSinceBuild()
Returns the build since we have zero warnings. |
long |
getZeroWarningsSinceDate()
Returns the time since we have zero warnings. |
boolean |
hasError()
Returns whether a module with an error is part of this project. |
protected abstract boolean |
hasPreviousResult()
Returns whether a previous build result exists. |
| Methods inherited from class hudson.plugins.findbugs.util.BuildResult |
|---|
getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getDataFile, getNumberOfAnnotations, getOwner, getSerializationFileName, hasAnnotations, hasAnnotations, hasAnnotations, hasNoAnnotations, hasNoAnnotations, hasNoAnnotations, isCurrent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.model.ModelObject |
|---|
getDisplayName |
| Constructor Detail |
|---|
public AnnotationsBuildResult(hudson.model.AbstractBuild<?,?> build,
ParserResult result)
AnnotationsBuildResult.
build - the current build as owner of this actionresult - the parsed result with all annotations
public AnnotationsBuildResult(hudson.model.AbstractBuild<?,?> build,
ParserResult result,
AnnotationsBuildResult previous)
AnnotationsBuildResult.
build - the current build as owner of this actionresult - the parsed result with all annotationsprevious - the result of the previous build| Method Detail |
|---|
public java.util.Collection<java.lang.String> getModules()
public boolean hasError()
true if at least one module has an error.public int getNumberOfModules()
public int getZeroWarningsSinceBuild()
public long getZeroWarningsSinceDate()
public long getZeroWarningsHighScore()
public int getNumberOfAnnotations()
public int getNumberOfAnnotations(Priority priority)
priority - the priority
public int getNumberOfFixedWarnings()
public int getNumberOfNewWarnings()
public int getDelta()
public JavaProject getProject()
public java.util.Collection<FileAnnotation> getNewWarnings()
public java.util.Collection<FileAnnotation> getFixedWarnings()
protected abstract boolean hasPreviousResult()
true if a previous build result exists.protected abstract JavaProject getPreviousResult()
public java.lang.Object getDynamic(java.lang.String link,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
link - the link to identify the sub page to showrequest - Stapler requestresponse - Stapler response
public final void doStatistics(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an errorpublic Priority[] getPriorities()
public AnnotationContainer getContainer()
getContainer in class BuildResult
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||