|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prorefactor.core.CommentFinder
public class CommentFinder
Use this class to find specific comments in, before, or after a node hierarchy. See org.prorefactor.refactor.unittest.NoUndoT.java (and its data file) for a complete unit test and example for this class. Currently the only search option is a case insensitive search.
Constructor Summary | |
---|---|
CommentFinder()
|
Method Summary | |
---|---|
int |
commentTextReview(ProToken t)
Review the text of current comment, to see if it matches. |
int |
examineAfter(JPNode node)
Find comments which come after the last descendant of the node, which match, and are not separated from that last sibling by any newline characters. |
int |
examineBefore(JPNode node)
Find comments before the node which match and are not separated from the node by any blank lines. |
int |
examineInner(JPNode node)
Find comments before the node which match. |
int |
search(JPNode node)
Return the number of COMMENT tokens which meet the search criteria |
void |
setFindString(java.lang.String input)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommentFinder()
Method Detail |
---|
public int commentTextReview(ProToken t)
public int examineAfter(JPNode node)
node
-
public int examineBefore(JPNode node)
node
-
public int examineInner(JPNode node)
node
-
public void setFindString(java.lang.String input)
public int search(JPNode node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |