Interface | Description |
---|---|
TokenFactory |
The methods of TokenFactory exist for one reason, and one reason only; to decouple the
TokenizerTest class from the specific classes used that all inherit from Token.
|
TokenMaker |
An object implements TokenMaker if it has a method makeToken
that takes an object of type String and returns an instance of the
class Token
|
Class | Description |
---|---|
DefaultTokenFactory |
The methods of TokenFactory exist for one reason, and one reason only; to decouple the
TokenizerTest class from the specific classes used that all inherit from Token.
|
DivideToken | |
ErrorToken | |
FiniteStateAutomaton | |
IntToken | |
LParenToken | |
MinusToken | |
PlusToken | |
RParenToken | |
TimesToken | |
Token | |
Tokenizer |
A simple tokenizer based on a Finite State Automaton
|
TokenizerTest | |
TokenTest |
Exception | Description |
---|---|
TokenizerException |
Exception thrown if tokenization fails for whatever reason (e.g.,
encountering an unexpected character).
|