ConForM.CoopnTools.CoKer.CoopnMgr
Class LexicalCoopnFileReader

java.lang.Object
  |
  +--ConForM.CoopnTools.CoKer.LexicalReader
        |
        +--ConForM.CoopnTools.CoKer.CoopnMgr.LexicalCoopnFileReader

public class LexicalCoopnFileReader
extends LexicalReader

Lexical reader for coopn source files

See Also:
LexicalReader

Fields inherited from class ConForM.CoopnTools.CoKer.LexicalReader
env, reader
 
Constructor Summary
LexicalCoopnFileReader(CoopnEnv env, java.io.Reader reader)
          Simple constructor.
 
Method Summary
 LexicalToken consultNextToken()
          Consult the next token.
 boolean hasMoreTokens()
          Test the reader of more tokens.
 LexicalToken nextToken()
          Consult and consume the next token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexicalCoopnFileReader

public LexicalCoopnFileReader(CoopnEnv env,
                              java.io.Reader reader)
Simple constructor.
Parameters:
reader - the input reader
env - the environment
Method Detail

hasMoreTokens

public boolean hasMoreTokens()
Test the reader of more tokens.
Overrides:
hasMoreTokens in class LexicalReader
Returns:
true if the reader has more tokens

nextToken

public LexicalToken nextToken()
Consult and consume the next token.
Overrides:
nextToken in class LexicalReader
Returns:
the next token, or null if hasMoreTokens() is false

consultNextToken

public LexicalToken consultNextToken()
Consult the next token.
Overrides:
consultNextToken in class LexicalReader
Returns:
the next token, or null if hasMoreTokens() is false