public abstract class QueryBugAnnotations extends Object
| Constructor and Description |
|---|
QueryBugAnnotations() |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyword(String keyword)
Add a keyword to the query.
|
protected abstract void |
match(BugInstance bugInstance,
String filename)
Called when a bug instance contains a query keyword.
|
void |
scan(BugCollection bugCollection,
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(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(String keyword)
keyword - the keywordpublic void scan(String filename) throws Exception
filename - an XML file containing bug instancesExceptionpublic void scan(BugCollection bugCollection, String filename) throws Exception
bugCollection - the bug collectionfilename - the XML file from which the bug collection was readExceptionprotected abstract void match(BugInstance bugInstance, String filename) throws Exception
bugInstance - the bug instance containing the keywordfilename - name of the file containing the bug instanceExceptionCopyright © 2003–2015. All rights reserved.