ConForM.CoopnTools.CoKer.CoopnMgr
Class LexicalCocoFileReader

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

public class LexicalCocoFileReader
extends LexicalReader

Lexical reader for coopn compact (coco) source files

See Also:
LexicalReader

Fields inherited from class ConForM.CoopnTools.CoKer.LexicalReader
env, reader
 
Constructor Summary
LexicalCocoFileReader(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

LexicalCocoFileReader

public LexicalCocoFileReader(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