cppast
Class SymbolTable

java.lang.Object
  extended by cppast.SymbolTable

public final class SymbolTable
extends java.lang.Object

Manages the symbol table and scopes.

Author:
Mathieu Champlon

Constructor Summary
SymbolTable()
          Creates a symbol table.
 
Method Summary
 void closeScope()
          Close current scope.
 void closeScopes()
          Close all scopes.
 void extend(java.lang.String name)
          Extend the current scope with another scope.
 Scope getCurrentScope()
           
 void openScope(java.lang.String name)
          Opens a scope of a given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SymbolTable

public SymbolTable()
Creates a symbol table.

Method Detail

openScope

public void openScope(java.lang.String name)
Opens a scope of a given name.

Parameters:
name - a non-null scope name

closeScope

public void closeScope()
Close current scope.


closeScopes

public void closeScopes()
Close all scopes.


getCurrentScope

public Scope getCurrentScope()

extend

public void extend(java.lang.String name)
Extend the current scope with another scope.

Parameters:
name - the name of the extension scope


Copyright © 2006-2007 null. All Rights Reserved.