hudson.plugins.warnings.parser
Class RegexpLineParser

java.lang.Object
  extended by hudson.plugins.warnings.parser.RegexpParser
      extended by hudson.plugins.warnings.parser.RegexpLineParser
All Implemented Interfaces:
WarningsParser
Direct Known Subclasses:
AntJavacParser, BuckminsterParser, ErlcParser, GccParser, GnatParser, IntelCParser, InvalidsParser, JavacParser, JavaDocParser, MsBuildParser, SunCParser

public abstract class RegexpLineParser
extends RegexpParser

Parses an input stream line by line for compiler warnings using the provided regular expression. Multiple line regular expressions are not supported, each warnings has to be one a single line.

Author:
Ulli Hafner

Field Summary
 
Fields inherited from class hudson.plugins.warnings.parser.RegexpParser
DEPRECATION, FALSE_POSITIVE, PROPRIETARY_API
 
Constructor Summary
RegexpLineParser(java.lang.String warningPattern, java.lang.String name)
          Creates a new instance of RegexpParser.
 
Method Summary
 java.util.Collection<FileAnnotation> parse(java.io.Reader file)
          Parses the specified input stream for compiler warnings using the provided regular expression.
 
Methods inherited from class hudson.plugins.warnings.parser.RegexpParser
classifyIfEmpty, classifyWarning, createWarning, findAnnotations, getLineNumber, getName, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegexpLineParser

public RegexpLineParser(java.lang.String warningPattern,
                        java.lang.String name)
Creates a new instance of RegexpParser. Uses a single line matcher.

Parameters:
warningPattern - pattern of compiler warnings.
name - name of the parser
Method Detail

parse

public java.util.Collection<FileAnnotation> parse(java.io.Reader file)
                                           throws java.io.IOException
Parses the specified input stream for compiler warnings using the provided regular expression.

Parameters:
file - the file to parse
Returns:
the collection of annotations
Throws:
java.io.IOException - Signals that an I/O exception has occurred.


Copyright © 2009. All Rights Reserved.