public class RegExTag extends AbsTag
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)
Constructor and Description |
---|
RegExTag(String tagString)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public RegExTag(String tagString)
tagString
- the string to match against for this tag.public int contains(String currentLine, Locale locale)
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
Copyright © 2005-2012 Codehaus. All Rights Reserved.