|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.checkstyle.util.BuildResult
hudson.plugins.checkstyle.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.checkstyle.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 | |
|---|---|
AnnotationContainer |
getContainer()
Gets the annotation container. |
static long |
getDays(long ms)
Returns the number of days for the specified number of milliseconds. |
int |
getDelta()
Returns the delta. |
abstract java.lang.String |
getDetails()
Returns the detail messages for the summary.jelly file. |
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. |
long |
getHighScoreGap()
Returns the number of msec still to go before a new highscore is reached. |
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 |
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. |
boolean |
isNewZeroWarningsHighScore()
Returns if the current result reached the old zero warnings highscore. |
| Methods inherited from class hudson.plugins.checkstyle.util.BuildResult |
|---|
getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getDataFile, getModules, getNumberOfAnnotations, getNumberOfModules, 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 static long getDays(long ms)
ms - milliseconds
public abstract java.lang.String getDetails()
public boolean hasError()
true if at least one module has an error.public int getZeroWarningsSinceBuild()
public long getZeroWarningsSinceDate()
public long getZeroWarningsHighScore()
public boolean isNewZeroWarningsHighScore()
true, if the current result reached the old zero warnings highscore.public long getHighScoreGap()
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 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 | |||||||||