Overview  Package   Class  Tree  Index 

be.lassi.io
Class Interpreter

java.lang.Object
  extended by be.lassi.io.Interpreter
Direct Known Subclasses:
ShowInterpreter

public class Interpreter
extends java.lang.Object


Constructor Summary
protected Interpreter(java.io.Reader reader)
           
 
Method Summary
protected  boolean eof()
          Return true if end of file reached.
protected  float nextFloat()
          Return the next integer read from the stream.
protected  int nextInteger(java.lang.String where)
          Return the next integer read from the stream.
protected  int nextInteger(java.lang.String where, int min, int max)
          Return the next integer read from the stream.
protected  int nextIntegerOrDash(java.lang.String where)
          Return the next integer or string read from the stream.
protected  int nextIntegerOrDashOrCross(java.lang.String where)
           
protected  java.lang.String nextString(java.lang.String where)
          Answer next string in stream.
protected  void throwException(java.lang.String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interpreter

protected Interpreter(java.io.Reader reader)
Method Detail

eof

protected boolean eof()
               throws ShowFileException
Return true if end of file reached.

Throws:
ShowFileException

nextFloat

protected float nextFloat()
                   throws ShowFileException
Return the next integer read from the stream.

Throws:
ShowFileException

nextInteger

protected int nextInteger(java.lang.String where)
                   throws ShowFileException
Return the next integer read from the stream.

Throws:
ShowFileException

nextInteger

protected int nextInteger(java.lang.String where,
                          int min,
                          int max)
                   throws ShowFileException
Return the next integer read from the stream.

Throws:
ShowFileException

nextIntegerOrDash

protected int nextIntegerOrDash(java.lang.String where)
                         throws ShowFileException
Return the next integer or string read from the stream.

Throws:
ShowFileException

nextIntegerOrDashOrCross

protected int nextIntegerOrDashOrCross(java.lang.String where)
                                throws ShowFileException
Throws:
ShowFileException

nextString

protected java.lang.String nextString(java.lang.String where)
                               throws ShowFileException
Answer next string in stream. This can be a quoted string.

Throws:
ShowFileException

throwException

protected void throwException(java.lang.String string)
                       throws ShowFileException
Throws:
ShowFileException

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2