#include <Y2Namespace.h>
Inheritance diagram for Y2Namespace:
Public Member Functions | |
Y2Namespace () | |
virtual | ~Y2Namespace () |
void | finish () |
virtual const string | name () const |
what namespace do we implement | |
virtual const string | filename () const =0 |
used for error reporting | |
virtual unsigned int | symbolCount () const |
gives the number of symbol declarations | |
virtual SymbolEntryPtr | symbolEntry (unsigned int position) const |
access to definitions of this namespace | |
virtual string | toString () const |
unparse. useful for debugging | |
string | symbolsToString () const |
virtual YCPValue | evaluate (bool cse=false)=0 |
called when evaluating the import statement | |
virtual SymbolTable * | table () const |
get our whole symbol table? | |
void | createTable () |
virtual Y2Function * | createFunctionCall (const string name, constFunctionTypePtr type)=0 |
void | pushToStack () |
void | popFromStack () |
virtual void | initialize () |
Protected Types | |
typedef vector< SymbolEntryPtr > | symbols_t |
Protected Member Functions | |
unsigned int | addSymbol (SymbolEntryPtr sentry) |
void | enterSymbol (SymbolEntryPtr sentry, Point *point=0) |
SymbolEntryPtr | lookupSymbol (const char *name) const |
void | releaseSymbol (unsigned int position) |
Protected Attributes | |
SymbolTable * | m_table |
unsigned int | m_symbolcount |
symbols_t | m_symbols |
bool | m_initialized |
Friends | |
class | SymbolTable |
|
|
|
|
|
|
|
|
|
Creates a function call instance, which can be used to call a function from this namespace. The object is NOT owned anymore by this instance, the caller can (and should) delete it.
Implemented in YBlock, and Y2SystemNamespace. |
|
|
|
|
|
called when evaluating the import statement
Implemented in YBlock, and Y2SystemNamespace. |
|
used for error reporting
Implemented in YBlock, and Y2SystemNamespace. |
|
|
|
|
|
|
|
what namespace do we implement
Reimplemented in YBlock, and Y2SystemNamespace. |
|
|
|
|
|
|
|
gives the number of symbol declarations
|
|
access to definitions of this namespace
|
|
|
|
get our whole symbol table?
Reimplemented in YBlock. |
|
unparse. useful for debugging
Reimplemented in YBlock. |
|
|
|
|
|
|
|
|
|
|