org.jsesoft.jpp
Class State

java.lang.Object
  |
  +--org.jsesoft.jpp.State
Direct Known Subclasses:
CommentSlashState, DefaultState, IdentifierState, NumberState, QuotedState, SingleLineCommentState, SymbolState, TraditionalCommentState, WhitespaceState

public abstract class State
extends java.lang.Object

Subclasses represent the states of the tokenizer.

Version:
1.0
Author:
JSESoft

Constructor Summary
State()
           
 
Method Summary
abstract  Token nextToken(java.io.PushbackReader reader, int first, Tokenizer tokenizer)
          Scans next token from reader.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

State

public State()
Method Detail

nextToken

public abstract Token nextToken(java.io.PushbackReader reader,
                                int first,
                                Tokenizer tokenizer)
                         throws java.io.IOException
Scans next token from reader.
Parameters:
reader - the reader to read characters from
first - the character starting the token
tokenizer - the tokenizer in duty
Returns:
the next token
Throws:
java.io.IOException - on any problem reading