Interface StaticSymbolTable<S extends StaticSlot,R extends StaticRef>

All Known Implementing Classes:
ReferenceCollector

public interface StaticSymbolTable<S extends StaticSlot,R extends StaticRef>
Lookup references by the symbols that they refer to.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns all variables in this symbol table.
    getReferences(S symbol)
    Returns the references that point to the given symbol.
    getScope(S symbol)
    Returns the scope for a given symbol.
  • Method Details

    • getReferences

      Iterable<R> getReferences(S symbol)
      Returns the references that point to the given symbol.
    • getScope

      StaticScope getScope(S symbol)
      Returns the scope for a given symbol.
    • getAllSymbols

      Iterable<S> getAllSymbols()
      Returns all variables in this symbol table.