uk.ac.ic.doc.automed.editor
Class Syntax.Tokenizer

java.lang.Object
  extended by java.io.StreamTokenizer
      extended by uk.ac.ic.doc.automed.editor.Syntax.Tokenizer
Enclosing class:
Syntax

static class Syntax.Tokenizer
extends java.io.StreamTokenizer


Field Summary
private  Syntax.Token currentToken
           
 
Fields inherited from class java.io.StreamTokenizer
nval, sval, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD, ttype
 
Constructor Summary
Syntax.Tokenizer(java.io.Reader rdr)
           
 
Method Summary
 Syntax.Token getCurrentToken()
           
 Syntax.Token getCurrentToken(int exp)
           
 Syntax.Token getCurrentToken(int lexp, int uexp)
           
 Syntax.Token getNextToken()
           
 Syntax.Token getNextToken(int exp)
           
 Syntax.Token getNextToken(int lexp, int uexp)
           
 
Methods inherited from class java.io.StreamTokenizer
commentChar, eolIsSignificant, lineno, lowerCaseMode, nextToken, ordinaryChar, ordinaryChars, parseNumbers, pushBack, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordChars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

currentToken

private Syntax.Token currentToken
Constructor Detail

Syntax.Tokenizer

Syntax.Tokenizer(java.io.Reader rdr)
Method Detail

getNextToken

public Syntax.Token getNextToken(int lexp,
                                 int uexp)
                          throws UnexpectedTokenException,
                                 java.io.IOException,
                                 SyntaxException
Throws:
UnexpectedTokenException
java.io.IOException
SyntaxException

getNextToken

public Syntax.Token getNextToken(int exp)
                          throws UnexpectedTokenException,
                                 java.io.IOException,
                                 SyntaxException
Throws:
UnexpectedTokenException
java.io.IOException
SyntaxException

getNextToken

public Syntax.Token getNextToken()
                          throws java.io.IOException,
                                 SyntaxException
Throws:
java.io.IOException
SyntaxException

getCurrentToken

public Syntax.Token getCurrentToken(int lexp,
                                    int uexp)
                             throws UnexpectedTokenException
Throws:
UnexpectedTokenException

getCurrentToken

public Syntax.Token getCurrentToken(int exp)
                             throws UnexpectedTokenException
Throws:
UnexpectedTokenException

getCurrentToken

public Syntax.Token getCurrentToken()