|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.core.ParserResult
public class ParserResult
Stores the collection of parsed annotations and associated error messages. This class is not thread safe.
| Constructor Summary | |
|---|---|
ParserResult()
Creates a new instance of ParserResult. |
|
ParserResult(Collection<? extends FileAnnotation> annotations)
Creates a new instance of ParserResult. |
|
ParserResult(hudson.FilePath workspace)
Creates a new instance of ParserResult. |
|
ParserResult(hudson.plugins.analysis.core.ParserResult.Workspace workspace)
Creates a new instance of ParserResult. |
|
| Method Summary | |
|---|---|
void |
addAnnotation(FileAnnotation annotation)
Adds the specified annotation to this container. |
void |
addAnnotations(Collection<? extends FileAnnotation> newAnnotations)
Adds the specified annotations to this container. |
void |
addAnnotations(FileAnnotation[] newAnnotations)
Adds the specified annotations to this container. |
void |
addErrorMessage(String message)
Adds an error message. |
void |
addErrorMessage(String module,
String message)
Adds an error message for the specified module name. |
void |
addErrors(List<String> errors)
Adds the error messages to this result. |
void |
addModule(String moduleName)
Adds a new parsed module. |
void |
addModules(Collection<String> additionalModules)
Adds the specified parsed modules. |
void |
addProject(ParserResult additionalProject)
Adds the warnings of the specified project to this project. |
Set<FileAnnotation> |
getAnnotations()
Returns the annotations of this result. |
List<String> |
getErrorMessages()
Returns the errorMessages. |
String |
getLogMessages()
Returns the log messages of the parsing process. |
Set<String> |
getModules()
Returns the parsed modules. |
int |
getNumberOfAnnotations()
Returns the total number of annotations for this object. |
int |
getNumberOfAnnotations(Priority priority)
Returns the total number of annotations of the specified priority for this object. |
int |
getNumberOfModules()
Returns the number of modules. |
boolean |
hasAnnotations()
Returns whether this objects has annotations. |
boolean |
hasAnnotations(Priority priority)
Returns whether this objects has annotations with the specified priority. |
boolean |
hasNoAnnotations()
Returns whether this objects has no annotations. |
boolean |
hasNoAnnotations(Priority priority)
Returns whether this objects has no annotations with the specified priority. |
void |
setLog(String message)
Sets the log messages of the parsing process. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParserResult()
ParserResult.
public ParserResult(hudson.FilePath workspace)
ParserResult.
workspace - the workspace to find the files inpublic ParserResult(hudson.plugins.analysis.core.ParserResult.Workspace workspace)
ParserResult.
workspace - the workspace to find the files inpublic ParserResult(Collection<? extends FileAnnotation> annotations)
ParserResult.
annotations - the annotations to add| Method Detail |
|---|
public void addProject(ParserResult additionalProject)
additionalProject - the project to addpublic final void addAnnotation(FileAnnotation annotation)
annotation - the annotation to addpublic final void addAnnotations(Collection<? extends FileAnnotation> newAnnotations)
newAnnotations - the annotations to addpublic final void addAnnotations(FileAnnotation[] newAnnotations)
newAnnotations - the annotations to add
public void addErrorMessage(String module,
String message)
module - the current modulemessage - the error messagepublic void addErrorMessage(String message)
message - the error messagepublic void addErrors(List<String> errors)
errors - the error messages to addpublic List<String> getErrorMessages()
public Set<FileAnnotation> getAnnotations()
public int getNumberOfAnnotations()
public int getNumberOfAnnotations(Priority priority)
priority - the priority
public boolean hasAnnotations()
true if this objects has annotations.public boolean hasAnnotations(Priority priority)
priority - the priority
true if this objects has annotations.public boolean hasNoAnnotations()
true if this objects has no annotations.public boolean hasNoAnnotations(Priority priority)
priority - the priority
true if this objects has no annotations.public int getNumberOfModules()
public Set<String> getModules()
public void addModule(String moduleName)
moduleName - the name of the parsed modulepublic void addModules(Collection<String> additionalModules)
additionalModules - the name of the parsed modulespublic String toString()
toString in class Objectpublic void setLog(String message)
message - a multiline messagepublic String getLogMessages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||