Class SymbolTable.Entry

  • Enclosing class:
    SymbolTable

    protected static final class SymbolTable.Entry
    extends Object
    This class is a symbol table entry. Each entry acts as a node in a linked list.
    • Field Detail

      • symbol

        public final String symbol
        Symbol.
      • characters

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

      • Entry

        public Entry​(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.