KDevelop API Documentation

CommonAST Class Reference

#include <CommonAST.hpp>

Inheritance diagram for CommonAST:

BaseAST AST CommonASTWithHiddenTokens List of all members.

Public Member Functions

 CommonAST ()
 CommonAST (RefToken t)
 CommonAST (const CommonAST &other)
virtual ~CommonAST ()
virtual const char * typeName (void) const
 Return the class name.

virtual RefAST clone (void) const
 Clone this AST node.

virtual std::string getText () const
 Get the token text for this node.

virtual int getType () const
 Get the token type for this node.

virtual void initialize (int t, const std::string &txt)
 Various initialization routines.

virtual void initialize (RefAST t)
virtual void initialize (RefToken t)
virtual void setText (const std::string &txt)
 Set the token text for this node.

virtual void setType (int type)
 Set the token type for this node.


Static Public Member Functions

RefAST factory ()

Protected Attributes

int ttype
std::string text

Constructor & Destructor Documentation

CommonAST::CommonAST  ) 
 

Definition at line 18 of file CommonAST.cpp.

References text().

Referenced by clone().

CommonAST::CommonAST RefToken  t  ) 
 

Definition at line 25 of file CommonAST.cpp.

References text().

CommonAST::CommonAST const CommonAST other  ) 
 

Definition at line 41 of file CommonAST.cpp.

References text().

CommonAST::~CommonAST  )  [virtual]
 

Definition at line 32 of file CommonAST.cpp.


Member Function Documentation

RefAST CommonAST::clone void   )  const [virtual]
 

Clone this AST node.

Reimplemented from BaseAST.

Reimplemented in CommonASTWithHiddenTokens.

Definition at line 46 of file CommonAST.cpp.

References CommonAST(), and RefAST.

RefAST CommonAST::factory  )  [static]
 

Reimplemented in CommonASTWithHiddenTokens.

Definition at line 108 of file CommonAST.cpp.

References RefAST.

std::string CommonAST::getText  )  const [virtual]
 

Get the token text for this node.

Reimplemented from BaseAST.

Definition at line 52 of file CommonAST.cpp.

References text().

int CommonAST::getType  )  const [virtual]
 

Get the token type for this node.

Reimplemented from BaseAST.

Definition at line 57 of file CommonAST.cpp.

References ttype.

void CommonAST::initialize RefToken  t  )  [virtual]
 

Implements AST.

Reimplemented in CommonASTWithHiddenTokens.

Definition at line 74 of file CommonAST.cpp.

References initialize(), setText(), and setType().

void CommonAST::initialize RefAST  t  )  [virtual]
 

Implements AST.

Reimplemented in CommonASTWithHiddenTokens.

Definition at line 68 of file CommonAST.cpp.

References initialize(), setText(), and setType().

void CommonAST::initialize int  t,
const std::string &  txt
[virtual]
 

Various initialization routines.

Used by several factories to initialize an AST element.

Implements AST.

Reimplemented in CommonASTWithHiddenTokens.

Definition at line 62 of file CommonAST.cpp.

References initialize(), setText(), and setType().

Referenced by initialize().

void CommonAST::setText const std::string &  txt  )  [virtual]
 

Set the token text for this node.

Reimplemented from BaseAST.

Definition at line 98 of file CommonAST.cpp.

References text().

Referenced by initialize().

void CommonAST::setType int  type  )  [virtual]
 

Set the token type for this node.

Reimplemented from BaseAST.

Definition at line 103 of file CommonAST.cpp.

References setType(), and ttype.

Referenced by initialize(), and setType().

const char * CommonAST::typeName void   )  const [virtual]
 

Return the class name.

Reimplemented from BaseAST.

Reimplemented in CommonASTWithHiddenTokens.

Definition at line 36 of file CommonAST.cpp.


Member Data Documentation

std ::string CommonAST::text [protected]
 

Definition at line 47 of file CommonAST.hpp.

int CommonAST::ttype [protected]
 

Definition at line 46 of file CommonAST.hpp.

Referenced by getType(), and setType().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:00 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003