hudson.plugins.warnings.parser
Class GroovyExpressionMatcher

java.lang.Object
  extended by hudson.plugins.warnings.parser.GroovyExpressionMatcher

public class GroovyExpressionMatcher
extends java.lang.Object

Creates a warning based on a regular expression match and groovy script.

Author:
Ulli Hafner

Constructor Summary
GroovyExpressionMatcher(java.lang.String script, Warning falsePositive)
          Creates a new instance of GroovyExpressionMatcher.
 
Method Summary
 Warning createWarning(java.util.regex.Matcher matcher)
          Creates a new annotation for the specified match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyExpressionMatcher

public GroovyExpressionMatcher(java.lang.String script,
                               Warning falsePositive)
Creates a new instance of GroovyExpressionMatcher.

Parameters:
script - Groovy script
falsePositive - indicates a false positive
Method Detail

createWarning

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

Parameters:
matcher - the regular expression matcher
Returns:
a new annotation for the specified pattern


Copyright © 2004-2011. All Rights Reserved.