es.uned.compiler.semantic.type
Interface TypeTableIF

All Known Implementing Classes:
TypeTable

public interface TypeTableIF

Interfaz que ha de seguir la tabla de tipos (TypeTable)


Method Summary
 boolean containsType(java.lang.String name)
          Indicates whether the type is contained in the type table.
 boolean containsType(TypeIF symbol)
          Indicates whether the type is contained in the type table.
 ScopeIF getScope()
          Returns the scope of this Symbol table.
 TypeIF getType(java.lang.String name)
          Looks up a type by name.
 java.util.List getTypes()
          Returns the list of types.
 void setType(java.lang.String name, TypeIF type)
          Sets a type in the type table.
 void setType(TypeIF type)
          Sets a type in the type table.
 

Method Detail

containsType

boolean containsType(java.lang.String name)
Indicates whether the type is contained in the type table.

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

containsType

boolean containsType(TypeIF symbol)
Indicates whether the type is contained in the type table.

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

getScope

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

Returns:
the scope of this Symbol table.

getType

TypeIF getType(java.lang.String name)
Looks up a type by name.

Parameters:
name - The name of the type.
Returns:
A type.

getTypes

java.util.List getTypes()
Returns the list of types.

Returns:
A list of types.

setType

void setType(java.lang.String name,
             TypeIF type)
Sets a type in the type table.

Parameters:
name - the type name.
type - the type.

setType

void setType(TypeIF type)
Sets a type in the type table.

Parameters:
type - the type.