|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.templates.ElemNumber.NumberFormatStringTokenizer
This class returns tokens using non-alphanumberic characters as delimiters.
Field Summary | |
private int |
currentPosition
Current position in the format string |
private int |
maxPosition
Index of last character in the format string |
private String |
str
Format string to be tokenized |
Constructor Summary | |
ElemNumber.NumberFormatStringTokenizer(String str)
Construct a NumberFormatStringTokenizer. |
Method Summary | |
int |
countTokens()
Calculates the number of times that this tokenizer's nextToken method can be called before it generates an
exception. |
boolean |
hasMoreTokens()
Tells if nextToken will throw an exception
if it is called. |
boolean |
isLetterOrDigitAhead()
Tells if there is a digit or a letter character ahead. |
boolean |
nextIsSep()
Tells if there is a digit or a letter character ahead. |
String |
nextToken()
Returns the next token from this string tokenizer. |
void |
reset()
Reset tokenizer so that nextToken() starts from the beginning. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int currentPosition
private int maxPosition
private String str
Constructor Detail |
public ElemNumber.NumberFormatStringTokenizer(String str)
str
- Format string to be tokenizedMethod Detail |
public void reset()
public String nextToken()
NoSuchElementException
- if there are no more tokens in this
tokenizer's string.public boolean isLetterOrDigitAhead()
public boolean nextIsSep()
public boolean hasMoreTokens()
nextToken
will throw an exception
if it is called.
nextToken
can be called
without throwing an exception.public int countTokens()
nextToken
method can be called before it generates an
exception.
StringTokenizer.nextToken()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |