hudson.plugins.warnings.parser
Class RegexpDocumentParser

java.lang.Object
  extended by hudson.plugins.warnings.parser.RegexpParser
      extended by hudson.plugins.warnings.parser.RegexpDocumentParser
All Implemented Interfaces:
WarningsParser
Direct Known Subclasses:
AntEclipseParser, IarParser

public abstract class RegexpDocumentParser
extends RegexpParser

Parses an input stream as a whole document for compiler warnings using the provided regular expression.

Author:
Ulli Hafner

Field Summary
 
Fields inherited from class hudson.plugins.warnings.parser.RegexpParser
DEPRECATION, FALSE_POSITIVE, PROPRIETARY_API
 
Constructor Summary
RegexpDocumentParser(java.lang.String warningPattern, boolean useMultiLine, 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

RegexpDocumentParser

public RegexpDocumentParser(java.lang.String warningPattern,
                            boolean useMultiLine,
                            java.lang.String name)
Creates a new instance of RegexpParser.

Parameters:
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

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.