KDevelop API Documentation

JavaStoreWalker.hpp

Go to the documentation of this file.
00001 #ifndef INC_JavaStoreWalker_hpp_
00002 #define INC_JavaStoreWalker_hpp_
00003 
00004 #line 3 "java.store.g"
00005 
00006     #include <codemodel.h>
00007     #include "JavaAST.hpp"
00008 
00009     #include <qstring.h>
00010     #include <qstringlist.h>
00011     #include <qvaluestack.h>
00012         #include <qfileinfo.h>
00013 
00014 #line 15 "JavaStoreWalker.hpp"
00015 #include <antlr/config.hpp>
00016 #include "JavaStoreWalkerTokenTypes.hpp"
00017 /* $ANTLR 2.7.2: "java.store.g" -> "JavaStoreWalker.hpp"$ */
00018 #include <antlr/TreeParser.hpp>
00019 
00020 #line 13 "java.store.g"
00021 
00022     #include <codemodel.h>
00023 
00024     #include <kdebug.h>
00025 
00026 #line 27 "JavaStoreWalker.hpp"
00027 
00040 class JavaStoreWalker : public ANTLR_USE_NAMESPACE(antlr)TreeParser, public JavaStoreWalkerTokenTypes
00041 {
00042 #line 43 "java.store.g"
00043 
00044 private:
00045     QStringList m_currentScope;
00046     CodeModel* m_model;
00047     FileDom m_file;
00048     QValueStack<ClassDom> m_currentClass;
00049     int m_currentAccess;
00050     int m_anon;
00051         ANTLR_USE_NAMESPACE(antlr)JavaASTFactory ast_factory;
00052 
00053 public:
00054     void setCodeModel( CodeModel* model )
00055     {
00056         m_model = model;
00057     }
00058 
00059     void setFile( FileDom file )
00060     {
00061         m_file = file;
00062     }
00063 
00064     void init()
00065     {
00066         m_currentScope.clear();
00067         m_currentAccess = CodeModelItem::Public;
00068         m_anon = 0;
00069 
00070             initializeASTFactory (ast_factory);
00071             setASTFactory (&ast_factory);
00072     }
00073 #line 44 "JavaStoreWalker.hpp"
00074 public:
00075     JavaStoreWalker();
00076     void initializeASTFactory( ANTLR_USE_NAMESPACE(antlr)ASTFactory& factory );
00077     int getNumTokens() const
00078     {
00079         return JavaStoreWalker::NUM_TOKENS;
00080     }
00081     const char* getTokenName( int type ) const
00082     {
00083         if( type > getNumTokens() ) return 0;
00084         return JavaStoreWalker::tokenNames[type];
00085     }
00086     public: void compilationUnit(RefJavaAST _t);
00087     public:  QString  packageDefinition(RefJavaAST _t);
00088     public:  QString  importDefinition(RefJavaAST _t);
00089     public: void typeDefinition(RefJavaAST _t);
00090     public:  QString  identifier(RefJavaAST _t);
00091     public:  QString  identifierStar(RefJavaAST _t);
00092     public:  QStringList  modifiers(RefJavaAST _t);
00093     public:  QStringList  extendsClause(RefJavaAST _t);
00094     public:  QStringList  implementsClause(RefJavaAST _t);
00095     public: void objBlock(RefJavaAST _t,
00096          ClassDom klass 
00097     );
00098     public: void interfaceBlock(RefJavaAST _t,
00099          ClassDom klass 
00100     );
00101     public:  QString  typeSpec(RefJavaAST _t);
00102     public:  QString  typeSpecArray(RefJavaAST _t);
00103     public:  QString  type(RefJavaAST _t);
00104     public: void builtInType(RefJavaAST _t);
00105     public: void modifier(RefJavaAST _t);
00106     public:  FunctionDom  methodDecl(RefJavaAST _t);
00107     public:  VariableDom  variableDef(RefJavaAST _t);
00108     public:  FunctionDom  ctorDef(RefJavaAST _t);
00109     public:  FunctionDom  methodDef(RefJavaAST _t);
00110     public: void slist(RefJavaAST _t);
00111     public: void methodHead(RefJavaAST _t,
00112          FunctionDom meth 
00113     );
00114     public: void variableDeclarator(RefJavaAST _t,
00115          VariableDom attr 
00116     );
00117     public: void varInitializer(RefJavaAST _t);
00118     public:  ArgumentDom  parameterDef(RefJavaAST _t);
00119     public: void objectinitializer(RefJavaAST _t);
00120     public: void initializer(RefJavaAST _t);
00121     public: void expression(RefJavaAST _t);
00122     public: void arrayInitializer(RefJavaAST _t);
00123     public: void throwsClause(RefJavaAST _t);
00124     public: void stat(RefJavaAST _t);
00125     public: void elist(RefJavaAST _t);
00126     public: void caseGroup(RefJavaAST _t);
00127     public: void tryBlock(RefJavaAST _t);
00128     public: void handler(RefJavaAST _t);
00129     public: void expr(RefJavaAST _t);
00130     public: void primaryExpression(RefJavaAST _t);
00131     public: void arrayIndex(RefJavaAST _t);
00132     public: void newExpression(RefJavaAST _t);
00133     public: void constant(RefJavaAST _t);
00134     public: void newArrayDeclarator(RefJavaAST _t);
00135 public:
00136     RefJavaAST getAST();
00137     
00138 protected:
00139     RefJavaAST returnAST;
00140     RefJavaAST _retTree;
00141 private:
00142     static const char* tokenNames[];
00143 #ifndef NO_STATIC_CONSTS
00144     static const int NUM_TOKENS = 153;
00145 #else
00146     enum {
00147         NUM_TOKENS = 153
00148     };
00149 #endif
00150     
00151     static const unsigned long _tokenSet_0_data_[];
00152     static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0;
00153     static const unsigned long _tokenSet_1_data_[];
00154     static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1;
00155 };
00156 
00157 #endif /*INC_JavaStoreWalker_hpp_*/
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:48 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003