You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdevelop/lib/antlr/antlr/ASTNULLType.h

65 lines
1.7 KiB

#ifndef INC_ASTNULLType_h__
#define INC_ASTNULLType_h__
/* ANTLR Translator Generator
* Project led by Terence Parr at http://www.jGuru.com
* Software rights: http://www.antlr.org/license.html
*
* $Id$
*/
#include <antlr/config.h>
#include <antlr/AST.h>
#include <iostream>
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
namespace antlr {
#endif
/** There is only one instance of this class **/
class ANTLR_API ASTNULLType : public AST {
public:
const char* typeName( void ) const;
RefAST clone( void ) const;
void addChild(RefAST c);
size_t getNumberOfChildren() const;
void setFirstChild(RefAST c);
void setNextSibling(RefAST n);
bool equals(RefAST t) const;
bool equalsList(RefAST t) const;
bool equalsListPartial(RefAST t) const;
bool equalsTree(RefAST t) const;
bool equalsTreePartial(RefAST t) const;
ANTLR_USE_NAMESPACE(std)vector<RefAST> findAll(RefAST tree);
ANTLR_USE_NAMESPACE(std)vector<RefAST> findAllPartial(RefAST subtree);
RefAST getFirstChild() const;
RefAST getNextSibling() const;
ANTLR_USE_NAMESPACE(std)string getText() const;
int getType() const;
void initialize(int t, const ANTLR_USE_NAMESPACE(std)string& txt);
void initialize(RefAST t);
void initialize(RefToken t);
void initialize(ANTLR_USE_NAMESPACE(std)istream& infile);
void setText(const ANTLR_USE_NAMESPACE(std)string& text);
void setType(int ttype);
ANTLR_USE_NAMESPACE(std)string toString() const;
ANTLR_USE_NAMESPACE(std)string toStringList() const;
ANTLR_USE_NAMESPACE(std)string toStringTree() const;
bool attributesToStream( ANTLR_USE_NAMESPACE(std)ostream &out ) const;
void toStream( ANTLR_USE_NAMESPACE(std)ostream &out ) const;
};
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
}
#endif
#endif //INC_ASTNULLType_h__