|
||||||||||
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.RegExTag
public class RegExTag
The regular expression tag class. This class defines a regular express tag search. This tag will match if the regular express string listed is found within the scanned lines. Example POM:
Example Java code with match:... fixme[0-9] regEx ...
fixme1 this will match (fixme followed by one digit.)Example Java code without match:
fixme this will NOT match (no digit after fixme)
Field Summary |
---|
Fields inherited from class org.codehaus.mojo.taglist.tags.AbsTag |
---|
tagString |
Constructor Summary | |
---|---|
RegExTag(String tagString)
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 RegExTag(String tagString)
tagString
- 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 |