• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

language/duchain

KDevelop::NamespaceAliasDeclaration

KDevelop::NamespaceAliasDeclaration Class Reference

A class which represents a "using namespace" statement, or a "namespace A = B" statement. More...

#include <namespacealiasdeclaration.h>

Inheritance diagram for KDevelop::NamespaceAliasDeclaration:
Inheritance graph
[legend]

List of all members.

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:
  • namespacealiasdeclaration.h
  • namespacealiasdeclaration.cpp

language/duchain

Skip menu "language/duchain"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal