Class FileSymbolTable

  • All Implemented Interfaces:
    SymbolTable

    public class FileSymbolTable
    extends java.lang.Object
    implements SymbolTable
    • Constructor Summary

      Constructors 
      Constructor Description
      FileSymbolTable​(java.io.File file)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String at​(int index)  
      void flush()  
      int lookup​(java.lang.String symbol)  
      void update()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileSymbolTable

        public FileSymbolTable​(java.io.File file)
    • Method Detail

      • update

        public void update()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • at

        public java.lang.String at​(int index)
        Specified by:
        at in interface SymbolTable
      • lookup

        public int lookup​(java.lang.String symbol)
        Specified by:
        lookup in interface SymbolTable