|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.util.ParserResult
public class ParserResult
Stores the collection of parsed annotations and associated error messages.
| Constructor Summary | |
|---|---|
ParserResult()
Creates a new instance of ParserResult. |
|
| Method Summary | |
|---|---|
void |
addAnnotation(FileAnnotation annotation)
Adds the specified annotation to this container. |
void |
addAnnotations(java.util.Collection<? extends FileAnnotation> newAnnotations)
Adds the specified annotations to this container. |
void |
addAnnotations(FileAnnotation[] newAnnotations)
Adds the specified annotations to this container. |
void |
addErrorMessage(java.lang.String message)
Sets an error message for the specified module name. |
void |
addModule(java.lang.String moduleName)
Adds a new parsed module. |
void |
addModules(java.util.Collection<java.lang.String> additionalModules)
Adds the specified parsed modules. |
java.util.Collection<FileAnnotation> |
getAnnotations()
Returns the annotations of this result. |
java.util.Collection<java.lang.String> |
getErrorMessages()
Returns the errorMessages. |
java.util.Set<java.lang.String> |
getModules()
additionalModules 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParserResult()
ParserResult.
| Method Detail |
|---|
public void addAnnotation(FileAnnotation annotation)
annotation - the annotation to addpublic final void addAnnotations(java.util.Collection<? extends FileAnnotation> newAnnotations)
newAnnotations - the annotations to addpublic final void addAnnotations(FileAnnotation[] newAnnotations)
newAnnotations - the annotations to addpublic void addErrorMessage(java.lang.String message)
message - the error messagepublic java.util.Collection<java.lang.String> getErrorMessages()
public java.util.Collection<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 java.util.Set<java.lang.String> getModules()
public void addModule(java.lang.String moduleName)
moduleName - the name of the parsed modulepublic void addModules(java.util.Collection<java.lang.String> additionalModules)
additionalModules - the name of the parsed modules
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||