Package com.qulice.pmd
Interface PmdError
-
- All Known Implementing Classes:
PmdError.OfConfigError,PmdError.OfProcessingError,PmdError.OfRuleViolation
public interface PmdErrorRepresents one PMD error (usually it will be violation).- Since:
- 1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPmdError.OfConfigErrorPmdError backed by a ConfigError.static classPmdError.OfProcessingErrorPmdError backed by a ProcessingError.static classPmdError.OfRuleViolationPmdError backed by a RuleViolation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringdescription()Returns error description.StringfileName()Returns file name which caused this error.Stringlines()Returns formatted line range which cause this error.Stringname()Returns error name which is short, fixed, human-readable category of the error.
-
-
-
Method Detail
-
name
String name()
Returns error name which is short, fixed, human-readable category of the error.- Returns:
- Error name.
-
fileName
String fileName()
Returns file name which caused this error. May return sentinel value if file information is not available.- Returns:
- File name.
-
lines
String lines()
Returns formatted line range which cause this error. May return sentinel value if line information is not available.- Returns:
- Formatted line range.
-
description
String description()
Returns error description.- Returns:
- Description.
-
-