|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.util.TokenSep
Internal class for managing the delimiters in MyTokenizer. It's rather similar to CustomSeparator, but faster for short constant strings.
Field Summary | |
private int |
length
|
private TokenSep |
next
|
private int |
pattern
|
private String |
theString
|
Constructor Summary | |
TokenSep(String str)
Constructs a TokenSep that will match the String given in str. |
Method Summary | |
boolean |
addChar(char c)
Called by MyTokenizer when a new character is processed in the sequence. |
TokenSep |
getNext()
|
String |
getString()
Gets this token. |
int |
length()
Gets the length of this token. |
void |
reset()
Called by MyTokenizer before starting scanning for a new token. |
void |
setNext(TokenSep n)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private TokenSep next
private final String theString
private final int length
private int pattern
Constructor Detail |
public TokenSep(String str)
str
- The delimiter string.Method Detail |
public boolean addChar(char c)
public void reset()
public int length()
public String getString()
public void setNext(TokenSep n)
n
- The next to set.public TokenSep getNext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |