00001 #ifndef INC_CommonHiddenStreamToken_hpp__ 00002 #define INC_CommonHiddenStreamToken_hpp__ 00003 00004 /* ANTLR Translator Generator 00005 * Project led by Terence Parr at http://www.jGuru.com 00006 * Software rights: http://www.antlr.org/license.html 00007 * 00008 * $Id: //depot/code/org.antlr/release/antlr-2.7.7/lib/cpp/antlr/CommonHiddenStreamToken.hpp#2 $ 00009 */ 00010 00011 #include <antlr/config.hpp> 00012 #include <antlr/CommonToken.hpp> 00013 00014 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00015 namespace antlr { 00016 #endif 00017 00018 class ANTLR_API CommonHiddenStreamToken : public CommonToken { 00019 protected: 00020 RefToken hiddenBefore; 00021 RefToken hiddenAfter; 00022 00023 public: 00024 CommonHiddenStreamToken(); 00025 CommonHiddenStreamToken(int t, const ANTLR_USE_NAMESPACE(std)string& txt); 00026 CommonHiddenStreamToken(const ANTLR_USE_NAMESPACE(std)string& s); 00027 00028 RefToken getHiddenAfter(); 00029 RefToken getHiddenBefore(); 00030 00031 static RefToken factory(); 00032 00033 void setHiddenAfter(RefToken t); 00034 void setHiddenBefore(RefToken t); 00035 }; 00036 00037 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00038 } 00039 #endif 00040 00041 #endif //INC_CommonHiddenStreamToken_hpp__