|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.warnings.parser.RegexpParser
public abstract class RegexpParser
Parses an input stream for compiler warnings using the provided regular expression.
| Field Summary | |
|---|---|
protected static java.lang.String |
DEPRECATION
Warning classification. |
protected static java.lang.String |
PROPRIETARY_API
Warning classification. |
| Constructor Summary | |
|---|---|
RegexpParser(java.lang.String warningPattern,
boolean useMultiLine,
java.lang.String name)
Creates a new instance of RegexpParser. |
|
RegexpParser(java.lang.String warningPattern,
java.lang.String name)
Creates a new instance of RegexpParser. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
classifyIfEmpty(java.lang.String group,
java.lang.String message)
Returns a category for the current warning. |
protected java.lang.String |
classifyWarning(java.lang.String message)
Classifies the warning message: tries to guess a category from the warning message. |
protected abstract Warning |
createWarning(java.util.regex.Matcher matcher)
Creates a new annotation for the specified pattern. |
protected void |
findAnnotations(java.lang.String content,
java.util.List<FileAnnotation> warnings)
Parses the specified string content and creates annotations for each found warning. |
protected int |
getLineNumber(java.lang.String lineNumber)
Converts a string line number to an integer value. |
java.lang.String |
getName()
Gets the human readable name of this parser. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface hudson.plugins.warnings.parser.WarningsParser |
|---|
parse |
| Field Detail |
|---|
protected static final java.lang.String DEPRECATION
protected static final java.lang.String PROPRIETARY_API
| Constructor Detail |
|---|
public RegexpParser(java.lang.String warningPattern,
java.lang.String name)
RegexpParser. Uses a single line matcher.
warningPattern - pattern of compiler warnings.name - name of the parser
public RegexpParser(java.lang.String warningPattern,
boolean useMultiLine,
java.lang.String name)
RegexpParser.
warningPattern - pattern of compiler warnings.useMultiLine - Enables multi line mode. In multi line mode the expressions
^ and $ match just after or just before,
respectively, a line terminator or the end of the input
sequence. By default these expressions only match at the
beginning and the end of the entire input sequence.name - name of the parser| Method Detail |
|---|
protected void findAnnotations(java.lang.String content,
java.util.List<FileAnnotation> warnings)
content - the content to scanwarnings - the found annotationspublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
getName in interface WarningsParserprotected abstract Warning createWarning(java.util.regex.Matcher matcher)
matcher - the regular expression matcher
protected final int getLineNumber(java.lang.String lineNumber)
lineNumber - the line number (as a string)
protected java.lang.String classifyWarning(java.lang.String message)
message - the message to check
protected java.lang.String classifyIfEmpty(java.lang.String group,
java.lang.String message)
group - the warning category (might be empty)message - the warning message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||