CommonHiddenStreamToken.cpp
上传用户:afrynkmhm
上传日期:2007-01-06
资源大小:1262k
文件大小:1k
源码类别:
编译器/解释器
开发平台:
Others
- #include "antlr/CommonHiddenStreamToken.hpp"
- ANTLR_BEGIN_NAMESPACE(antlr)
- CommonHiddenStreamToken::CommonHiddenStreamToken()
- : CommonToken()
- {
- }
- CommonHiddenStreamToken::CommonHiddenStreamToken(int t, const ANTLR_USE_NAMESPACE(std)string& txt)
- : CommonToken(t,txt)
- {
- }
- CommonHiddenStreamToken::CommonHiddenStreamToken(const ANTLR_USE_NAMESPACE(std)string& s)
- : CommonToken(s)
- {
- }
- RefToken CommonHiddenStreamToken::getHiddenAfter()
- {
- return hiddenAfter;
- }
- RefToken CommonHiddenStreamToken::getHiddenBefore()
- {
- return hiddenBefore;
- }
- RefToken CommonHiddenStreamToken::factory()
- {
- return RefToken(new CommonHiddenStreamToken);
- }
- void CommonHiddenStreamToken::setHiddenAfter(RefToken t)
- {
- hiddenAfter = t;
- }
- void CommonHiddenStreamToken::setHiddenBefore(RefToken t)
- {
- hiddenBefore = t;
- }
- ANTLR_END_NAMESPACE