~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to lib/antlr/antlr/ASTNULLType.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef INC_ASTNULLType_hpp__
 
2
#define INC_ASTNULLType_hpp__
 
3
 
 
4
/* ANTLR Translator Generator
 
5
 * Project led by Terence Parr at http://www.jGuru.com
 
6
 * Software rights: http://www.antlr.org/RIGHTS.html
 
7
 *
 
8
 */
 
9
 
 
10
#include <antlr/config.hpp>
 
11
#include <antlr/AST.hpp>
 
12
#include <iostream>
 
13
 
 
14
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
 
15
namespace antlr {
 
16
#endif
 
17
 
 
18
/** There is only one instance of this class **/
 
19
class ANTLR_API ASTNULLType : public AST {
 
20
public:
 
21
        const char* typeName( void ) const;
 
22
        RefAST clone( void ) const;
 
23
 
 
24
        void addChild(RefAST c);
 
25
        void setFirstChild(RefAST c);
 
26
        void setNextSibling(RefAST n);
 
27
 
 
28
        bool equals(RefAST t) const;
 
29
        bool equalsList(RefAST t) const;
 
30
        bool equalsListPartial(RefAST t) const;
 
31
        bool equalsTree(RefAST t) const;
 
32
        bool equalsTreePartial(RefAST t) const;
 
33
 
 
34
        ANTLR_USE_NAMESPACE(std)vector<RefAST> findAll(RefAST tree);
 
35
        ANTLR_USE_NAMESPACE(std)vector<RefAST> findAllPartial(RefAST subtree);
 
36
 
 
37
        RefAST getFirstChild() const;
 
38
        RefAST getNextSibling() const;
 
39
 
 
40
        ANTLR_USE_NAMESPACE(std)string getText() const;
 
41
        int getType() const;
 
42
 
 
43
        void initialize(int t, const ANTLR_USE_NAMESPACE(std)string& txt);
 
44
        void initialize(RefAST t);
 
45
        void initialize(RefToken t);
 
46
        void initialize(ANTLR_USE_NAMESPACE(std)istream& infile);
 
47
 
 
48
        void setText(const ANTLR_USE_NAMESPACE(std)string& text);
 
49
        void setType(int ttype);
 
50
        ANTLR_USE_NAMESPACE(std)string toString() const;
 
51
        ANTLR_USE_NAMESPACE(std)string toStringList() const;
 
52
        ANTLR_USE_NAMESPACE(std)string toStringTree() const;
 
53
 
 
54
        bool attributesToStream( ANTLR_USE_NAMESPACE(std)ostream &out ) const;
 
55
        void toStream( ANTLR_USE_NAMESPACE(std)ostream &out ) const;
 
56
};
 
57
 
 
58
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
 
59
}
 
60
#endif
 
61
 
 
62
#endif //INC_ASTNULLType_hpp__