KDevelop API Documentation

lib/antlr/antlr/CommonAST.hpp

Go to the documentation of this file.
00001 #ifndef INC_CommonAST_hpp__ 00002 #define INC_CommonAST_hpp__ 00003 00004 /* ANTLR Translator Generator 00005 * Project led by Terence Parr at http://www.jGuru.com 00006 * Software rights: http://www.antlr.org/RIGHTS.html 00007 * 00008 * $Id: CommonAST.hpp,v 1.2 2003/05/02 00:36:19 okellogg Exp $ 00009 */ 00010 00011 #include <antlr/config.hpp> 00012 #include <antlr/BaseAST.hpp> 00013 00014 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00015 namespace antlr { 00016 #endif 00017 00018 class ANTLR_API CommonAST : public BaseAST { 00019 public: 00020 CommonAST(); 00021 CommonAST( RefToken t ); 00022 CommonAST( const CommonAST& other ); 00023 00024 virtual ~CommonAST(); 00025 00026 virtual const char* typeName( void ) const; 00028 virtual RefAST clone( void ) const; 00029 00030 virtual ANTLR_USE_NAMESPACE(std)string getText() const; 00031 virtual int getType() const; 00032 00033 virtual void initialize( int t, const ANTLR_USE_NAMESPACE(std)string& txt ); 00034 virtual void initialize( RefAST t ); 00035 virtual void initialize( RefToken t ); 00036 #ifdef ANTLR_SUPPORT_XML 00037 virtual void initialize( ANTLR_USE_NAMESPACE(std)istream& in ); 00038 #endif 00039 00040 virtual void setText( const ANTLR_USE_NAMESPACE(std)string& txt ); 00041 virtual void setType( int type ); 00042 00043 static RefAST factory(); 00044 00045 protected: 00046 int ttype; 00047 ANTLR_USE_NAMESPACE(std)string text; 00048 }; 00049 00050 typedef ASTRefCount<CommonAST> RefCommonAST; 00051 00052 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00053 } 00054 #endif 00055 00056 #endif //INC_CommonAST_hpp__
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:06 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003