|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScopeManagerIF
Interfaz para el gestor de ámbitos (ScopeManager).
Method Summary | |
---|---|
boolean |
containsSymbol(java.lang.String name)
Indicates whether a symbol is contained witin the scope stack. |
boolean |
containsSymbol(SymbolIF symbol)
Indicates whether a symbol is contained witin the scope stack. |
Scope |
createScope(java.lang.String name)
Creates a new scope and adds it to the scope stack. |
java.util.List |
getAllScopes()
Returns all scopes witin created during the compilation process. |
java.util.List |
getCurrentScopes()
Returns all scopes witin the stack. |
ScopeIF |
getParentScope()
Returns the parent scope. |
ScopeIF |
getScope()
Returns the current scope. |
ScopeIF |
getScope(int index)
Returns a scope. |
void |
releaseScope()
Release the current scope dropping from the scope stack. |
SymbolIF |
searchSymbol(java.lang.String name)
Looks up a symbol accross all scopes within the stack. |
Method Detail |
---|
boolean containsSymbol(java.lang.String name)
name
- The symbol name to search.
boolean containsSymbol(SymbolIF symbol)
symbol
- The symbol to search.
Scope createScope(java.lang.String name)
name
- the mame token that opens the scope.
java.util.List getAllScopes()
java.util.List getCurrentScopes()
ScopeIF getParentScope()
ScopeIF getScope()
ScopeIF getScope(int index)
index
- The index of the scope within the scope stack.
void releaseScope()
SymbolIF searchSymbol(java.lang.String name)
name
- The sumbol name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |