|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.util.AbstractAnnotationParser
public abstract class AbstractAnnotationParser
A base class for parsers that work on files an produce annotations.
| Constructor Summary | |
|---|---|
protected |
AbstractAnnotationParser(java.lang.String defaultEncoding)
Creates a new instance of AbstractAnnotationParser. |
| Method Summary | |
|---|---|
protected int |
createContextHashCode(java.lang.String fileName,
int line)
Creates a hash code from the source code of the warning line and the surrounding context. |
protected java.lang.String |
getDefaultEncoding()
Returns the default encoding to be used when reading and parsing files. |
java.util.Collection<FileAnnotation> |
parse(java.io.File file,
java.lang.String moduleName)
Returns the annotations found in the specified file. |
abstract java.util.Collection<FileAnnotation> |
parse(java.io.InputStream file,
java.lang.String moduleName)
Returns the annotations found in the specified file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractAnnotationParser(java.lang.String defaultEncoding)
AbstractAnnotationParser.
defaultEncoding - the default encoding to be used when reading and parsing files| Method Detail |
|---|
protected final java.lang.String getDefaultEncoding()
public java.util.Collection<FileAnnotation> parse(java.io.File file,
java.lang.String moduleName)
throws java.lang.reflect.InvocationTargetException
parse in interface AnnotationParserfile - the file to parsemoduleName - name of the maven module
java.lang.reflect.InvocationTargetException - if the file could not be parsed (wrap your exception in this exception)
public abstract java.util.Collection<FileAnnotation> parse(java.io.InputStream file,
java.lang.String moduleName)
throws java.lang.reflect.InvocationTargetException
file - the file to parsemoduleName - name of the maven module
java.lang.reflect.InvocationTargetException - if the file could not be parsed (wrap your exception in this exception)
protected int createContextHashCode(java.lang.String fileName,
int line)
throws java.io.IOException
fileName - the absolute path of the file to readline - the line of the warning
java.io.IOException - if the contents of the file could not be read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||