|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.math.AbstractTokenizer
public abstract class AbstractTokenizer extends java.lang.Object
Abstract tokenizer class. It determines the interface of the formula and logical tokenizers.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
token
Last found token in the formula |
| Constructor and Description |
|---|
AbstractTokenizer()
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
dispose()
Disposes the tokenizer |
abstract int |
getPosition()
Returns the position of the tokenizer. |
abstract java.lang.String |
getPreviousToken()
Return the previous token. |
abstract boolean |
hasMoreTokens()
Checks if the string has more tokens |
boolean |
isLeftBracket()
Checks if the last string is the left bracket. |
boolean |
isRightBracket()
Checks if the last token is the right bracket. |
abstract java.lang.String |
nextToken()
Returns next token |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String token
| Constructor Detail |
|---|
public AbstractTokenizer()
| Method Detail |
|---|
public abstract boolean hasMoreTokens()
public abstract java.lang.String nextToken()
public abstract java.lang.String getPreviousToken()
public abstract int getPosition()
public abstract void dispose()
public boolean isLeftBracket()
public boolean isRightBracket()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||