language/duchain
KDevelop::NamespaceAliasDeclaration Class Reference
A class which represents a "using namespace" statement, or a "namespace A = B" statement. More...
#include <namespacealiasdeclaration.h>

Public Types | |
| enum | { Identity = 13 } |
| typedef Declaration | BaseClass |
Public Member Functions | |
| NamespaceAliasDeclaration (NamespaceAliasDeclarationData &data) | |
| NamespaceAliasDeclaration (const SimpleRange &range, DUContext *context) | |
| NamespaceAliasDeclaration (const NamespaceAliasDeclaration &rhs) | |
| QualifiedIdentifier | importIdentifier () const |
| virtual void | setAbstractType (AbstractType::Ptr type) |
| void | setImportIdentifier (const QualifiedIdentifier &id) |
| virtual QString | toString () const |
Detailed Description
A class which represents a "using namespace" statement, or a "namespace A = B" statement.
Definition at line 43 of file namespacealiasdeclaration.h.
Member Function Documentation
| QualifiedIdentifier KDevelop::NamespaceAliasDeclaration::importIdentifier | ( | ) | const |
The identifier that was imported.
Definition at line 47 of file namespacealiasdeclaration.cpp.
| void KDevelop::NamespaceAliasDeclaration::setAbstractType | ( | AbstractType::Ptr | type | ) | [virtual] |
A NamespaceAliasDeclaration cannot have a type, so setAbstractType does nothing here.
Reimplemented from KDevelop::Declaration.
Definition at line 63 of file namespacealiasdeclaration.cpp.
| void KDevelop::NamespaceAliasDeclaration::setImportIdentifier | ( | const QualifiedIdentifier & | id | ) |
The identifier must be absolute(Resolve it before setting it!) Since it is absolute, it should also be explicitlyGlobal.
Definition at line 51 of file namespacealiasdeclaration.cpp.
| QString KDevelop::NamespaceAliasDeclaration::toString | ( | ) | const [virtual] |
Determine this declaration as a string.
- Returns:
- this declaration as a string.
Reimplemented from KDevelop::Declaration.
Definition at line 68 of file namespacealiasdeclaration.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference