es.uned.compiler.semantic.symbol
Interface SymbolTableIF

All Known Implementing Classes:
SymbolTable

public interface SymbolTableIF

Interfaz que ha de seguir la tabla de símbolos


Method Summary
 boolean containsSymbol(java.lang.String name)
          Indicates whether the symbol is contained in the symbol table.
 boolean containsSymbol(SymbolIF symbol)
          Indicates whether the symbol is contained in the symbol table.
 ScopeIF getScope()
          Returns the scope of this Symbol table.
 SymbolIF getSymbol(java.lang.String name)
          Returns a symbol from the symbol table.
 java.util.List getSymbols()
          Returns the list of symbols.
 void setSymbol(java.lang.String name, SymbolIF symbol)
          Sets a symbol to the symbol table.
 

Method Detail

containsSymbol

boolean containsSymbol(java.lang.String name)
Indicates whether the symbol is contained in the symbol table.

Parameters:
name - The symbol name.
Returns:
True if the symbol is contained in the symbol table.

containsSymbol

boolean containsSymbol(SymbolIF symbol)
Indicates whether the symbol is contained in the symbol table.

Parameters:
symbol - The symbol.
Returns:
True if the symbol is contained in the symbol table.

getScope

ScopeIF getScope()
Returns the scope of this Symbol table.

Returns:
the scope of this Symbol table.

getSymbol

SymbolIF getSymbol(java.lang.String name)
Returns a symbol from the symbol table.

Parameters:
name - the symbol key.

getSymbols

java.util.List getSymbols()
Returns the list of symbols.

Returns:
A list of symbols.

setSymbol

void setSymbol(java.lang.String name,
               SymbolIF symbol)
Sets a symbol to the symbol table.

Parameters:
name - the symbol name.
symbol - the symbol.