hudson.plugins.warnings.parser
Class DynamicParser

java.lang.Object
  extended by hudson.plugins.warnings.parser.RegexpParser
      extended by hudson.plugins.warnings.parser.RegexpLineParser
          extended by hudson.plugins.warnings.parser.DynamicParser
All Implemented Interfaces:
WarningsParser

public class DynamicParser
extends RegexpLineParser

A line parser that uses a configurable regular expression and Groovy script to parse warnings.

Author:
Ulli Hafner

Field Summary
 
Fields inherited from class hudson.plugins.warnings.parser.RegexpParser
DEPRECATION, FALSE_POSITIVE, PROPRIETARY_API
 
Constructor Summary
DynamicParser(java.lang.String name, java.lang.String regexp, java.lang.String script)
          Creates a new instance of DynamicParser.
 
Method Summary
protected  Warning createWarning(java.util.regex.Matcher matcher)
          Creates a new annotation for the specified pattern.
 
Methods inherited from class hudson.plugins.warnings.parser.RegexpLineParser
isLineInteresting, parse
 
Methods inherited from class hudson.plugins.warnings.parser.RegexpParser
classifyIfEmpty, classifyWarning, findAnnotations, getLineNumber, getName, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicParser

public DynamicParser(java.lang.String name,
                     java.lang.String regexp,
                     java.lang.String script)
Creates a new instance of DynamicParser.

Parameters:
name - name of the parser
regexp - regular expression
script - Groovy script
Method Detail

createWarning

protected Warning createWarning(java.util.regex.Matcher matcher)
Creates a new annotation for the specified pattern.

Specified by:
createWarning in class RegexpParser
Parameters:
matcher - the regular expression matcher
Returns:
a new annotation for the specified pattern


Copyright © 2004-2011. All Rights Reserved.