|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.util.model.AbstractAnnotation
org.jenkinsci.plugins.cflint.parser.LintAnnotation
public class LintAnnotation
An analysis-core Annotation representing a potential bug as determined by Lint.
| Field Summary |
|---|
| Fields inherited from class hudson.plugins.analysis.util.model.AbstractAnnotation |
|---|
WORKSPACE_FILES |
| Constructor Summary | |
|---|---|
LintAnnotation(hudson.plugins.analysis.util.model.Priority priority,
String message,
String category,
String type,
int lineNumber)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addLocation(Location location)
Adds an additional location where this issue occurs. |
List<String> |
getErrorLines()
|
Collection<Location> |
getLocations()
|
String |
getToolTip()
|
void |
setErrorLines(String... lines)
Sets the error lines for this issue. |
void |
setExplanation(String explanation)
|
| Methods inherited from class hudson.plugins.analysis.util.model.AbstractAnnotation |
|---|
addLineRange, canDisplayFile, compareTo, equals, getCategory, getContextHashCode, getFileName, getKey, getLineRanges, getLinkLineNumber, getLinkName, getMessage, getModuleName, getOrigin, getPackageName, getPathName, getPrimaryLineNumber, getPriority, getShortFileName, getTempName, getType, hashCode, hasPackageName, intern, intern, setColumnPosition, setContextHashCode, setFileName, setModuleName, setOrigin, setPackageName, setPathName, setPriority, superReadResolve, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LintAnnotation(hudson.plugins.analysis.util.model.Priority priority,
String message,
String category,
String type,
int lineNumber)
priority - Priority of this bug.message - Describes exactly what the bug is.category - Bug categorisation.type - Type within the categorylineNumber - Line number the bug starts on.| Method Detail |
|---|
public void setExplanation(String explanation)
explanation - An explanation of the Lint rule violated.public void setErrorLines(String... lines)
public List<String> getErrorLines()
public void addLocation(Location location)
location - A location of this issue.public Collection<Location> getLocations()
AbstractAnnotation.getFileName()) where the
issue occurs.public String getToolTip()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||