|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.util.model.AbstractAnnotation
public abstract class AbstractAnnotation
A base class for annotations.
| Constructor Summary | |
|---|---|
AbstractAnnotation(Priority priority,
java.lang.String message,
int start,
int end)
Creates a new instance of AbstractAnnotation. |
|
| Method Summary | |
|---|---|
void |
addLineRange(LineRange lineRange)
Adds another line range to this annotation. |
int |
compareTo(AbstractAnnotation otherTask)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getFileName()
Returns the absolute path of the workspace file that contains this annotation. |
long |
getKey()
Returns the unique key of this annotation. |
java.util.Collection<LineRange> |
getLineRanges()
Returns a collection of line ranges for this annotation. |
java.lang.String |
getMessage()
Returns the message of this annotation. |
java.lang.String |
getModuleName()
Returns the name of the maven or ant module that contains this annotation. |
java.lang.String |
getPackageName()
Returns the name of package (or namespace) that contains this annotation. |
int |
getPrimaryLineNumber()
Returns the primary line number of this annotation that defines the anchor of this annotation. |
Priority |
getPriority()
Returns the priority of this annotation. |
int |
hashCode()
|
void |
setFileName(java.lang.String fileName)
Sets the file name to the specified value. |
void |
setKey(long key)
Sets the unique key of this task. |
void |
setModuleName(java.lang.String moduleName)
Sets the module name to the specified value. |
void |
setPackageName(java.lang.String packageName)
Sets the package name to the specified value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.plugins.findbugs.util.model.FileAnnotation |
|---|
getToolTip |
| Constructor Detail |
|---|
public AbstractAnnotation(Priority priority,
java.lang.String message,
int start,
int end)
AbstractAnnotation.
priority - the prioritymessage - the message of the warningstart - the first line of the line rangeend - the last line of the line range| Method Detail |
|---|
public int compareTo(AbstractAnnotation otherTask)
compareTo in interface java.lang.Comparable<AbstractAnnotation>public java.lang.String getMessage()
getMessage in interface FileAnnotationpublic Priority getPriority()
getPriority in interface FileAnnotationpublic void setKey(long key)
key - the keypublic final long getKey()
getKey in interface FileAnnotationpublic final java.lang.String getFileName()
getFileName in interface FileAnnotationpublic final void setFileName(java.lang.String fileName)
fileName - the value to setpublic final java.lang.String getModuleName()
getModuleName in interface FileAnnotationpublic final void setModuleName(java.lang.String moduleName)
moduleName - the value to setpublic final java.lang.String getPackageName()
getPackageName in interface FileAnnotationpublic final void setPackageName(java.lang.String packageName)
packageName - the value to setpublic final java.util.Collection<LineRange> getLineRanges()
getLineRanges in interface FileAnnotationpublic final int getPrimaryLineNumber()
getPrimaryLineNumber in interface FileAnnotationpublic void addLineRange(LineRange lineRange)
lineRange - the line range to addpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||