|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.mojo.taglist.tags.AbsTag
org.codehaus.mojo.taglist.tags.GenericTag
public class GenericTag
The generic tag class. This class defines a generic "case sensitive" exact match tag. This tag will only match if the exact string listed is found within the scanned lines. Example POM:
Example Java code with match:... fixme ...
* fixme this will NOT match.Example Java code without match:
* Fixme this will NOT match.
Field Summary |
---|
Fields inherited from class org.codehaus.mojo.taglist.tags.AbsTag |
---|
tagString |
Constructor Summary | |
---|---|
GenericTag(String exactTagString)
Constructor. |
Method Summary | |
---|---|
int |
contains(String currentLine,
Locale locale)
Check to see if the string contains this tag. |
int |
getLastTagMatchLength()
Return the length of the last matched tag. |
boolean |
startsWith(String currentLine,
Locale locale)
Check to see if the string starts with this tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericTag(String exactTagString)
exactTagString
- the string to match against for this tag.Method Detail |
---|
public int contains(String currentLine, Locale locale)
contains
in class AbsTag
currentLine
- the string for the current line being scanned.locale
- the Locale of the currentLine.
public boolean startsWith(String currentLine, Locale locale)
startsWith
in class AbsTag
currentLine
- the string for the current line being scanned.locale
- the Locale of the currentLine.
public int getLastTagMatchLength()
getLastTagMatchLength
in class AbsTag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |