com.jstatcom.model
Interface SymbolScope

All Known Implementing Classes:
ModelFrame, ModelPanel, TSCalcFrame, TSCalculator, TSSel

public interface SymbolScope

An interface to be implemented by components that provide access to a hierarchy of symbol tables. The implementing class has access to all higher level symbol tables. The local symboltable is only visible to itself and child components that implement SymbolScope.

Author:
Markus Kraetzig

Method Summary
 SymbolTable global()
          Gets the top level symbol table.
 SymbolTable local()
          Gets the local level symbol table that is only visible to this and all child components that implement SymbolScope.
 SymbolTable upper()
          Gets the next higher level symbol table.
 

Method Detail

global

SymbolTable global()
Gets the top level symbol table.

Returns:
symbol table

upper

SymbolTable upper()
Gets the next higher level symbol table. It should return the the same as local on the parent scope. If this is already the top level scope, this method should return the same as global.

Returns:
symbol table

local

SymbolTable local()
Gets the local level symbol table that is only visible to this and all child components that implement SymbolScope. If this is already the top level scope, this method should return the same as global.

Returns:
symbol table