ConForM.CoopnTools.CoKer.ConstraintsMgr
Class LexicalConsFileReader

java.lang.Object
  |
  +--ConForM.CoopnTools.CoKer.LexicalReader
        |
        +--ConForM.CoopnTools.CoKer.ConstraintsMgr.LexicalConsFileReader

public class LexicalConsFileReader
extends LexicalReader

Lexical reader for constraints files

See Also:
LexicalReader

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

LexicalConsFileReader

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