KDevelop API Documentation

CommonASTWithHiddenTokens.hpp

Go to the documentation of this file.
00001 #ifndef INC_CommonASTWithHiddenTokens_hpp__
00002 #define INC_CommonASTWithHiddenTokens_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: CommonASTWithHiddenTokens.hpp,v 1.2 2003/05/02 00:36:19 okellogg Exp $
00009  */
00010 
00011 #include <antlr/config.hpp>
00012 #include <antlr/CommonAST.hpp>
00013 
00014 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00015 namespace antlr {
00016 #endif
00017 
00021 class ANTLR_API CommonASTWithHiddenTokens : public CommonAST {
00022 public:
00023     CommonASTWithHiddenTokens();
00024     virtual ~CommonASTWithHiddenTokens();
00025     virtual const char* typeName( void ) const
00026     {
00027         return "CommonASTWithHiddenTokens";
00028     }
00030     virtual RefAST clone( void ) const;
00031 
00032     // Borland C++ builder seems to need the decl's of the first two...
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 
00037     virtual RefToken getHiddenAfter() const
00038     {
00039         return hiddenAfter;
00040     }
00041 
00042     virtual RefToken getHiddenBefore() const
00043     {
00044         return hiddenBefore;
00045     }
00046 
00047     static RefAST factory();
00048 
00049 protected:
00050     RefToken hiddenBefore,hiddenAfter; // references to hidden tokens
00051 };
00052 
00053 typedef ASTRefCount<CommonASTWithHiddenTokens> RefCommonASTWithHiddenTokens;
00054 
00055 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00056 }
00057 #endif
00058 
00059 #endif //INC_CommonASTWithHiddenTokens_hpp__
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:50 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003