jasi.sim.user.tree
Class AbstractLispTree
java.lang.Object
jasi.sim.user.tree.Tree<java.lang.String>
jasi.sim.user.tree.AbstractLispTree
- Direct Known Subclasses:
- IcdTree, LispTree
public abstract class AbstractLispTree
- extends Tree<java.lang.String>
Abstract base class for lisp trees.
Field Summary |
protected java.util.StringTokenizer |
tokenizer
The string tokenizer. |
Constructor Summary |
protected |
AbstractLispTree(java.util.StringTokenizer tokenizer)
|
Method Summary |
protected java.lang.String |
collectText()
Collect text tokens from ICD string until double quotes are found. |
protected java.lang.String |
nextText()
Get a text token from ICD string. |
protected java.lang.String |
nextToken()
Get next token from ICD string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
tokenizer
protected final java.util.StringTokenizer tokenizer
- The string tokenizer.
AbstractLispTree
protected AbstractLispTree(java.util.StringTokenizer tokenizer)
collectText
protected final java.lang.String collectText()
throws TreeException
- Collect text tokens from ICD string until double quotes are found.
- Returns:
- The next token.
- Throws:
TreeException
- If text token can not obtained.
nextText
protected final java.lang.String nextText()
throws TreeException
- Get a text token from ICD string.
- Returns:
- The next token.
- Throws:
TreeException
- If text token can not obtained.
nextToken
protected final java.lang.String nextToken()
throws TreeException
- Get next token from ICD string.
- Returns:
- The next token.
- Throws:
TreeException
- If next token can not obtained.