public abstract class QueryBugAnnotations
extends java.lang.Object
| Constructor and Description |
|---|
QueryBugAnnotations() |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyword(java.lang.String keyword)
Add a keyword to the query.
|
protected abstract void |
match(BugInstance bugInstance,
java.lang.String filename)
Called when a bug instance contains a query keyword.
|
void |
scan(BugCollection bugCollection,
java.lang.String filename)
Scan bug instances contained in given bug collection, reporting those
whose text annotations contain at least one of the keywords in the query.
|
void |
scan(java.lang.String filename)
Scan bug instances contained in given file, reporting those whose text
annotations contain at least one of the keywords in the query.
|
public void addKeyword(java.lang.String keyword)
keyword - the keywordpublic void scan(java.lang.String filename)
throws java.lang.Exception
filename - an XML file containing bug instancesjava.lang.Exceptionpublic void scan(BugCollection bugCollection, java.lang.String filename) throws java.lang.Exception
bugCollection - the bug collectionfilename - the XML file from which the bug collection was readjava.lang.Exceptionprotected abstract void match(BugInstance bugInstance, java.lang.String filename) throws java.lang.Exception
bugInstance - the bug instance containing the keywordfilename - name of the file containing the bug instancejava.lang.ExceptionFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.