public class TagClass extends Object
Action Items todo ignoreCase
Modifier and Type | Field and Description |
---|---|
static int |
NO_MATCH
The int value for no tag match found.
|
Constructor and Description |
---|
TagClass(String displayName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addTag(AbsTag tag)
Add a tag to this tag class.
|
String |
getDisplayName()
Get the display name of this tag class.
|
String |
getLastTagMatchString()
Return the tag string for the last successfully matched tag.
|
int |
getLastTagMatchStringLength()
Return the length of the last matched tag.
|
TagReport |
getTagReport()
Access the tag report for this tag class.
|
int |
tagMatchContains(String currentLine,
Locale locale)
Get the index of the first tag contained from within a string.
|
boolean |
tagMatchStartsWith(String currentLine,
Locale locale)
Check if a string starts with a tag from this tag class.
|
public static final int NO_MATCH
public TagClass(String displayName)
displayName
- the string to display as the name for this tag class.public TagReport getTagReport()
public void addTag(AbsTag tag)
tag
- the tag to add to the tag class.public int tagMatchContains(String currentLine, Locale locale)
currentLine
- the string for the current line being scanned.locale
- the Locale of the currentLine.public boolean tagMatchStartsWith(String currentLine, Locale locale)
currentLine
- the string for the current line being scanned.locale
- the Locale of the currentLine.public String getLastTagMatchString()
public int getLastTagMatchStringLength()
public String getDisplayName()
Copyright © 2005-2014 Codehaus. All Rights Reserved.