hudson.plugins.pmd.parser
Class Bug
java.lang.Object
hudson.plugins.pmd.util.model.AbstractAnnotation
hudson.plugins.pmd.parser.Bug
- All Implemented Interfaces:
- FileAnnotation, java.io.Serializable, java.lang.Comparable<FileAnnotation>
public class Bug
- extends AbstractAnnotation
A serializable Java Bean class representing a warning.
Note: this class has a natural ordering that is inconsistent with equals.
- Author:
- Ulli Hafner
- See Also:
- Serialized Form
|
Constructor Summary |
Bug(Priority priority,
java.lang.String message,
java.lang.String category,
java.lang.String type,
int lineNumber)
Creates a new instance of Bug. |
Bug(Priority priority,
java.lang.String message,
java.lang.String category,
java.lang.String type,
int start,
int end)
Creates a new instance of Bug. |
|
Method Summary |
java.lang.String |
getToolTip()
Returns the a detailed description that will be used as tooltip. |
| Methods inherited from class hudson.plugins.pmd.util.model.AbstractAnnotation |
addLineRange, canDisplayFile, compareTo, equals, getCategory, getContextHashCode, getFileName, getKey, getLineRanges, getMessage, getModuleName, getPackageName, getPrimaryLineNumber, getPriority, getShortFileName, getTempName, getType, hashCode, hasPackageName, setContextHashCode, setFileName, setModuleName, setPackageName, setPriority |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Bug
public Bug(Priority priority,
java.lang.String message,
java.lang.String category,
java.lang.String type,
int start,
int end)
- Creates a new instance of
Bug.
- Parameters:
priority - the prioritymessage - the message of the warningcategory - the warning categorytype - the identifier of the warning typestart - the first line of the line rangeend - the last line of the line range
Bug
public Bug(Priority priority,
java.lang.String message,
java.lang.String category,
java.lang.String type,
int lineNumber)
- Creates a new instance of
Bug.
- Parameters:
priority - the prioritymessage - the message of the warningcategory - the warning categorytype - the identifier of the warning typelineNumber - the line number of the warning in the corresponding file
getToolTip
public java.lang.String getToolTip()
- Returns the a detailed description that will be used as tooltip.
- Returns:
- the tooltip of this annotation
Copyright © 2009. All Rights Reserved.