hudson.plugins.warnings.parser
Class DynamicDocumentParser

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

public class DynamicDocumentParser
extends RegexpDocumentParser

A multi-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
DynamicDocumentParser(java.lang.String name, java.lang.String regexp, java.lang.String script)
          Creates a new instance of DynamicDocumentParser.
 
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.RegexpDocumentParser
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

DynamicDocumentParser

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

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.