| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xalan.templates.ElemNumber.NumberFormatStringTokenizer
class ElemNumber.NumberFormatStringTokenizer
This class returns tokens using non-alphanumberic characters as delimiters.
| Field Summary | |
|---|---|
| private  int | currentPositionCurrent position in the format string | 
| private  int | maxPositionIndex of last character in the format string | 
| private  java.lang.String | strFormat string to be tokenized | 
| Constructor Summary | |
|---|---|
| ElemNumber.NumberFormatStringTokenizer(java.lang.String str)Construct a NumberFormatStringTokenizer. | |
| Method Summary | |
|---|---|
|  int | countTokens()Calculates the number of times that this tokenizer's nextTokenmethod can be called before it generates an
 exception. | 
|  boolean | hasMoreTokens()Tells if nextTokenwill 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. | 
|  java.lang.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 java.lang.String str
| Constructor Detail | 
|---|
public ElemNumber.NumberFormatStringTokenizer(java.lang.String str)
str - Format string to be tokenized| Method Detail | 
|---|
public void reset()
public java.lang.String nextToken()
java.util.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 | |||||||||