|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.util.CustomSeparator
org.argouml.util.ExprSeparatorWithStrings
A descendent of CustomSeparator that recognizes tokens on the form:
( " \" ) " ' \' ) ' )
This is, an expression inside parentheses with proper consideration for quoted strings inside the the expression.
Field Summary | |
private boolean |
isDQuot
|
private boolean |
isEsc
|
private boolean |
isSQuot
|
private int |
tokLen
|
private int |
tokLevel
|
Fields inherited from class org.argouml.util.CustomSeparator |
|
Constructor Summary | |
ExprSeparatorWithStrings()
The constructor. |
Method Summary | |
boolean |
endChar(char c)
Called to check if more characters are expected in the free part of the token. Overridden to find the end of the token. |
boolean |
hasFreePart()
Called to check if more characters are expected to follow after addChar has returned true. If true, then any following characters will be fed to endChar until endChar returns true. The default behaviour is to return false. Overridden to return true. |
void |
reset()
Called to reset the separator before staring to look for a new token. |
int |
tokenLength()
Returns the length of the matched token. It is not required to be meaningful unless addChar has returned true and hasFreePart returned false or endChar returned true. Overridden to return the entire length of the token. |
Methods inherited from class org.argouml.util.CustomSeparator |
addChar, getPeekCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private boolean isSQuot
private boolean isDQuot
private boolean isEsc
private int tokLevel
private int tokLen
Constructor Detail |
public ExprSeparatorWithStrings()
Method Detail |
public void reset()
CustomSeparator
reset
in class CustomSeparator
public int tokenLength()
tokenLength
in class CustomSeparator
public boolean hasFreePart()
The default behaviour is to return false. Overridden to return true.
hasFreePart
in class CustomSeparator
public boolean endChar(char c)
endChar
in class CustomSeparator
c
- The next character in the sequence being tokenized.
|
|||||||||||
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 |