info.simongibbs.scoof
Class CommentSearch

java.lang.Object
  extended byinfo.simongibbs.scoof.AbstractSearchTask
      extended byinfo.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
           
 
Constructor Summary
CommentSearch(Target t)
          Construct a new basic task.
 
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 info.simongibbs.scoof.AbstractSearchTask
getTarget, setTarget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS

public static final java.lang.String CLASS
Constructor Detail

CommentSearch

public CommentSearch(Target t)
Construct a new basic task.

Parameters:
t - the Target of the search
Method Detail

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.