KDevelop API Documentation

JavaLexer.hpp

Go to the documentation of this file.
00001 #ifndef INC_JavaLexer_hpp_
00002 #define INC_JavaLexer_hpp_
00003 
00004 #line 2 "java.g"
00005 
00006     #include "driver.h"
00007     #include "JavaAST.hpp"
00008 
00009     #include <qlistview.h>
00010     #include <kdebug.h>
00011 
00012     #define SET_POSITION(ast,t)\
00013     { \
00014         RefJavaAST(ast)->setLine( t->getLine() );\
00015         RefJavaAST(ast)->setColumn( t->getColumn() ); \
00016     }
00017 
00018 #line 19 "JavaLexer.hpp"
00019 #include <antlr/config.hpp>
00020 /* $ANTLR 2.7.2: "java.g" -> "JavaLexer.hpp"$ */
00021 #include <antlr/CommonToken.hpp>
00022 #include <antlr/InputBuffer.hpp>
00023 #include <antlr/BitSet.hpp>
00024 #include "JavaTokenTypes.hpp"
00025 #include <antlr/CharScanner.hpp>
00026 class JavaLexer : public ANTLR_USE_NAMESPACE(antlr)CharScanner, public JavaTokenTypes
00027 {
00028 #line 1058 "java.g"
00029 
00030 private:
00031     Driver* m_driver;
00032 
00033 public:
00034     void setDriver( Driver* d ) { m_driver = d; }
00035         void setFileName( const QString& fileName ) { m_driver->currentFileName() = fileName; }
00036 
00037         virtual void reportError( const ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex ){
00038         m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
00039     }
00040 
00041         virtual void reportError( const ANTLR_USE_NAMESPACE(std)string& errorMessage ){
00042         m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(errorMessage.c_str()), getLine(), getColumn()) );
00043     }
00044 
00045         virtual void reportWarning( const ANTLR_USE_NAMESPACE(std)string& warnMessage ){
00046         m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(warnMessage.c_str()), getLine(), getColumn()) );
00047     }
00048 #line 30 "JavaLexer.hpp"
00049 private:
00050     void initLiterals();
00051 public:
00052     bool getCaseSensitiveLiterals() const
00053     {
00054         return true;
00055     }
00056 public:
00057     JavaLexer(ANTLR_USE_NAMESPACE(std)istream& in);
00058     JavaLexer(ANTLR_USE_NAMESPACE(antlr)InputBuffer& ib);
00059     JavaLexer(const ANTLR_USE_NAMESPACE(antlr)LexerSharedInputState& state);
00060     ANTLR_USE_NAMESPACE(antlr)RefToken nextToken();
00061     public: void mQUESTION(bool _createToken);
00062     public: void mLPAREN(bool _createToken);
00063     public: void mRPAREN(bool _createToken);
00064     public: void mLBRACK(bool _createToken);
00065     public: void mRBRACK(bool _createToken);
00066     public: void mLCURLY(bool _createToken);
00067     public: void mRCURLY(bool _createToken);
00068     public: void mCOLON(bool _createToken);
00069     public: void mCOMMA(bool _createToken);
00070     public: void mASSIGN(bool _createToken);
00071     public: void mEQUAL(bool _createToken);
00072     public: void mLNOT(bool _createToken);
00073     public: void mBNOT(bool _createToken);
00074     public: void mNOT_EQUAL(bool _createToken);
00075     public: void mDIV(bool _createToken);
00076     public: void mDIV_ASSIGN(bool _createToken);
00077     public: void mPLUS(bool _createToken);
00078     public: void mPLUS_ASSIGN(bool _createToken);
00079     public: void mINC(bool _createToken);
00080     public: void mMINUS(bool _createToken);
00081     public: void mMINUS_ASSIGN(bool _createToken);
00082     public: void mDEC(bool _createToken);
00083     public: void mSTAR(bool _createToken);
00084     public: void mSTAR_ASSIGN(bool _createToken);
00085     public: void mMOD(bool _createToken);
00086     public: void mMOD_ASSIGN(bool _createToken);
00087     public: void mSR(bool _createToken);
00088     public: void mSR_ASSIGN(bool _createToken);
00089     public: void mBSR(bool _createToken);
00090     public: void mBSR_ASSIGN(bool _createToken);
00091     public: void mGE(bool _createToken);
00092     public: void mGT(bool _createToken);
00093     public: void mSL(bool _createToken);
00094     public: void mSL_ASSIGN(bool _createToken);
00095     public: void mLE(bool _createToken);
00096     public: void mLT_(bool _createToken);
00097     public: void mBXOR(bool _createToken);
00098     public: void mBXOR_ASSIGN(bool _createToken);
00099     public: void mBOR(bool _createToken);
00100     public: void mBOR_ASSIGN(bool _createToken);
00101     public: void mLOR(bool _createToken);
00102     public: void mBAND(bool _createToken);
00103     public: void mBAND_ASSIGN(bool _createToken);
00104     public: void mLAND(bool _createToken);
00105     public: void mSEMI(bool _createToken);
00106     public: void mWS(bool _createToken);
00107     public: void mSL_COMMENT(bool _createToken);
00108     public: void mML_COMMENT(bool _createToken);
00109     public: void mCHAR_LITERAL(bool _createToken);
00110     protected: void mESC(bool _createToken);
00111     public: void mSTRING_LITERAL(bool _createToken);
00112     protected: void mHEX_DIGIT(bool _createToken);
00113     protected: void mVOCAB(bool _createToken);
00114     public: void mIDENT(bool _createToken);
00115     public: void mNUM_INT(bool _createToken);
00116     protected: void mEXPONENT(bool _createToken);
00117     protected: void mFLOAT_SUFFIX(bool _createToken);
00118 private:
00119     
00120     static const unsigned long _tokenSet_0_data_[];
00121     static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_0;
00122     static const unsigned long _tokenSet_1_data_[];
00123     static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_1;
00124     static const unsigned long _tokenSet_2_data_[];
00125     static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_2;
00126     static const unsigned long _tokenSet_3_data_[];
00127     static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_3;
00128     static const unsigned long _tokenSet_4_data_[];
00129     static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_4;
00130 };
00131 
00132 #endif /*INC_JavaLexer_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 Tue Feb 22 09:22:31 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003