ConForM.CoopnTools.CoKer.SpecMgr
Class LexicalSpecFileReader

java.lang.Object
  |
  +--ConForM.CoopnTools.CoKer.LexicalReader
        |
        +--ConForM.CoopnTools.CoKer.SpecMgr.LexicalSpecFileReader

public class LexicalSpecFileReader
extends LexicalReader

Lexical reader for specification files

See Also:
LexicalReader

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

LexicalSpecFileReader

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