| 
 | Jadex 0.941 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.util.ExpressionTokenizer
An expression tokenizer is able to parse a string with respect to different nesting-levels (eg. brackets, quotes).
| Field Summary | |
| static String | ESCAPE_CHARACTERSThe escape characters allow to include separators in the tokens. | 
| Constructor Summary | |
| ExpressionTokenizer(String string,
                    String separators,
                    String[] metas)Create a new tokenizer. | |
| ExpressionTokenizer(String string,
                    String separators,
                    String[] metas,
                    boolean retsep)Create a new tokenizer. | |
| Method Summary | |
|  int | countTokens()Count the number of tokens. | 
|  boolean | hasMoreTokens()Test if there are more tokens available. | 
| static void | main(String[] args)Main for testing. | 
|  String | nextToken()Get the next token from the string. | 
|  String | remainingTokens()Get the remaining tokens as single string. | 
|  void | setPosition(int pos)Set the parse position manually. | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final String ESCAPE_CHARACTERS
| Constructor Detail | 
public ExpressionTokenizer(String string,
                           String separators,
                           String[] metas)
string - The string.separators - The separator chars.metas - The nesting level delimiters.
public ExpressionTokenizer(String string,
                           String separators,
                           String[] metas,
                           boolean retsep)
string - The string.separators - The separator chars.metas - The nesting level delimiters.retsep - Return the separator chars.| Method Detail | 
public String nextToken()
public String remainingTokens()
public boolean hasMoreTokens()
public int countTokens()
public void setPosition(int pos)
pos - The new position.public static void main(String[] args)
| 
 | Jadex 0.941 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.