prolog.syntax
Class Scanner

java.lang.Object
  |
  +--prolog.syntax.Scanner
Direct Known Subclasses:
ModelScanner

public class Scanner
extends java.lang.Object


Field Summary
protected  int currentChar
           
protected  int currentLine
           
protected  int currentSign
           
protected  java.lang.StringBuffer currentWord
           
protected  java.io.Reader source
           
protected  ISymbolTable symbolTable
           
 
Constructor Summary
Scanner(ISymbolTable table)
           
 
Method Summary
 void close()
           
 int getCurrentChar()
           
 int getCurrentLine()
           
 int getCurrentSign()
           
 int getCurrentWord()
           
 int input()
           
 boolean isCurrentChar()
           
 boolean isCurrentWhiteSpace()
           
 void openDocument(java.io.File f)
           
 void openDocument(java.io.Reader input)
           
 void openDocument(java.lang.String text)
           
 void reset()
           
 void scanWord()
           
 void skipWhiteSpace()
           
 boolean test(char c)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

source

protected java.io.Reader source

currentWord

protected java.lang.StringBuffer currentWord

currentChar

protected int currentChar

currentLine

protected int currentLine

currentSign

protected int currentSign

symbolTable

protected ISymbolTable symbolTable
Constructor Detail

Scanner

public Scanner(ISymbolTable table)
Method Detail

reset

public void reset()

openDocument

public void openDocument(java.io.File f)
                  throws java.io.FileNotFoundException

openDocument

public void openDocument(java.lang.String text)

openDocument

public void openDocument(java.io.Reader input)

close

public void close()
           throws java.io.IOException

getCurrentChar

public int getCurrentChar()

getCurrentWord

public int getCurrentWord()

input

public int input()

getCurrentLine

public int getCurrentLine()

getCurrentSign

public int getCurrentSign()

skipWhiteSpace

public void skipWhiteSpace()

test

public boolean test(char c)

isCurrentChar

public boolean isCurrentChar()

isCurrentWhiteSpace

public boolean isCurrentWhiteSpace()

scanWord

public void scanWord()