OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
CommonHiddenStreamToken.cpp
1/* ANTLR Translator Generator
2 * Project led by Terence Parr at http://www.jGuru.com
3 * Software rights: http://www.antlr.org/license.html
4 *
5 * $Id$
6 */
7#include "antlr/CommonHiddenStreamToken.hpp"
8
9#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
10namespace antlr {
11#endif
12
13CommonHiddenStreamToken::CommonHiddenStreamToken()
14: CommonToken()
15{
16}
17
18CommonHiddenStreamToken::CommonHiddenStreamToken(int t, const ANTLR_USE_NAMESPACE(std)string& txt)
19: CommonToken(t,txt)
20{
21}
22
23CommonHiddenStreamToken::CommonHiddenStreamToken(const ANTLR_USE_NAMESPACE(std)string& s)
24: CommonToken(s)
25{
26}
27
28RefToken CommonHiddenStreamToken::getHiddenAfter()
29{
30 return hiddenAfter;
31}
32
33RefToken CommonHiddenStreamToken::getHiddenBefore()
34{
35 return hiddenBefore;
36}
37
38RefToken CommonHiddenStreamToken::factory()
39{
40 return RefToken(new CommonHiddenStreamToken);
41}
42
43void CommonHiddenStreamToken::setHiddenAfter(RefToken t)
44{
45 hiddenAfter = t;
46}
47
48void CommonHiddenStreamToken::setHiddenBefore(RefToken t)
49{
50 hiddenBefore = t;
51}
52
53#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
54}
55#endif
56