Class SymbolTable.Entry

  • Enclosing class:
    SymbolTable

    protected static final class SymbolTable.Entry
    extends java.lang.Object
    This class is a symbol table entry. Each entry acts as a node in a linked list.
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(char[] ch, int offset, int length, SymbolTable.Entry next)
      Constructs a new entry from the specified symbol information and next entry reference.
      Entry​(java.lang.String symbol, SymbolTable.Entry next)
      Constructs a new entry from the specified symbol and next entry reference.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • symbol

        public final java.lang.String symbol
        Symbol.
      • characters

        public final char[] characters
        Symbol characters. This information is duplicated here for comparison performance.
    • Constructor Detail

      • Entry

        public Entry​(java.lang.String symbol,
                     SymbolTable.Entry next)
        Constructs a new entry from the specified symbol and next entry reference.
      • Entry

        public Entry​(char[] ch,
                     int offset,
                     int length,
                     SymbolTable.Entry next)
        Constructs a new entry from the specified symbol information and next entry reference.