]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_codesigning/antlr2/src/CommonHiddenStreamToken.cpp
Security-59754.80.3.tar.gz
[apple/security.git] / OSX / libsecurity_codesigning / antlr2 / src / 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: //depot/code/org.antlr/release/antlr-2.7.7/lib/cpp/src/CommonHiddenStreamToken.cpp#2 $
6 */
7 #include "antlr/CommonHiddenStreamToken.hpp"
8
9 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
10 namespace antlr {
11 #endif
12
13 CommonHiddenStreamToken::CommonHiddenStreamToken()
14 : CommonToken()
15 {
16 }
17
18 CommonHiddenStreamToken::CommonHiddenStreamToken(int t, const ANTLR_USE_NAMESPACE(std)string& txt)
19 : CommonToken(t,txt)
20 {
21 }
22
23 CommonHiddenStreamToken::CommonHiddenStreamToken(const ANTLR_USE_NAMESPACE(std)string& s)
24 : CommonToken(s)
25 {
26 }
27
28 RefToken CommonHiddenStreamToken::getHiddenAfter()
29 {
30 return hiddenAfter;
31 }
32
33 RefToken CommonHiddenStreamToken::getHiddenBefore()
34 {
35 return hiddenBefore;
36 }
37
38 RefToken CommonHiddenStreamToken::factory()
39 {
40 return RefToken(new CommonHiddenStreamToken);
41 }
42
43 void CommonHiddenStreamToken::setHiddenAfter(RefToken t)
44 {
45 hiddenAfter = t;
46 }
47
48 void CommonHiddenStreamToken::setHiddenBefore(RefToken t)
49 {
50 hiddenBefore = t;
51 }
52
53 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
54 }
55 #endif
56