info.simongibbs.scoof
Class CommentSearch
java.lang.Object
info.simongibbs.scoof.AbstractSearchTask
info.simongibbs.scoof.CommentSearch
- All Implemented Interfaces:
- java.lang.Runnable, SearchTask
- public class CommentSearch
- extends AbstractSearchTask
Produces Hits by locating all annotations within a source file and
producing hashes of each complete comment. Comments are treated to encourage
similarity.
- Version:
- $Revision: 1.3 $
- Author:
- simon
Field Summary |
static java.lang.String |
CLASS
|
Method Summary |
static java.util.Collection |
findComments(java.lang.String code)
Utilty method to strip the contents comments from Java, C or C++ code. |
void |
run()
Performs the search. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS
public static final java.lang.String CLASS
CommentSearch
public CommentSearch(Target t)
- Construct a new basic task.
- Parameters:
t
- the Target of the search
run
public void run()
- Description copied from class:
AbstractSearchTask
- Performs the search.
- Specified by:
run
in interface SearchTask
- Specified by:
run
in class AbstractSearchTask
- See Also:
Runnable.run()
findComments
public static java.util.Collection findComments(java.lang.String code)
- Utilty method to strip the contents comments from Java, C or C++ code.
- Parameters:
code
-
- Returns:
- Collection
Passage
objects containing comment code.