hudson.plugins.warnings.parser
Class IarParser

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

public class IarParser
extends RegexpDocumentParser

A parser for the IAR C/C++ compiler warnings.

Author:
Claus Klein

Field Summary
 
Fields inherited from class hudson.plugins.warnings.parser.RegexpParser
DEPRECATION, FALSE_POSITIVE, PROPRIETARY_API
 
Constructor Summary
IarParser()
          Creates a new instance of IarParser.
 
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

IarParser

public IarParser()
Creates a new instance of IarParser.

Method Detail

createWarning

protected Warning createWarning(java.util.regex.Matcher matcher)
Creates a new annotation for the specified pattern. This method is called for each matching line in the specified file. If a match is a false positive, then you can return the constant RegexpParser.FALSE_POSITIVE to ignore this warning.

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


Copyright © 2010. All Rights Reserved.