diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-12-17 20:50:19 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-12-17 23:50:37 +0900 |
commit | 3e3d9eda9d1dd8c67c1c27c6a9bdc68bdecfcc30 (patch) | |
tree | 6af0b8ba2786060423ba143e894bf9529d351f8d /languages/java/JavaAST.hpp | |
parent | f08b30edb9f422128083050320681b6bacd06d1d (diff) | |
download | tdevelop-3e3d9eda9d1dd8c67c1c27c6a9bdc68bdecfcc30.tar.gz tdevelop-3e3d9eda9d1dd8c67c1c27c6a9bdc68bdecfcc30.zip |
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'languages/java/JavaAST.hpp')
-rw-r--r-- | languages/java/JavaAST.hpp | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/languages/java/JavaAST.hpp b/languages/java/JavaAST.hpp deleted file mode 100644 index 7108fca1..00000000 --- a/languages/java/JavaAST.hpp +++ /dev/null @@ -1,77 +0,0 @@ -#ifndef JAVAAST_HPP -#define JAVAAST_HPP - -#include <antlr/CommonAST.hpp> -#include <antlr/ASTFactory.hpp> - -class JavaAST; -typedef ANTLR_USE_NAMESPACE(antlr)ASTRefCount<JavaAST> RefJavaAST; - -class JavaAST : public ANTLR_USE_NAMESPACE(antlr)CommonAST -{ -public: - JavaAST() - : m_line(0), m_column(0) {} - - virtual ~JavaAST() {} - - int getLine() const { return m_line; } - void setLine( int line ) { m_line = line; } - - int getColumn() const { return m_column; } - void setColumn( int column ) { m_column = column; } - - void initialize( ANTLR_USE_NAMESPACE(antlr)RefToken t ) - { - CommonAST::initialize(t); - m_line = t->getLine() - 1; - m_column = t->getColumn() - 1; - } - - void initialize( ANTLR_USE_NAMESPACE(antlr)RefAST t ) - { - CommonAST::initialize( t ); - - m_line = 0; - m_column = 0; - - RefJavaAST a( dynamic_cast<JavaAST*>(t.get()) ); - m_line = a->getLine(); - m_column = a->getColumn(); - } - - void initialize(int t, const ANTLR_USE_NAMESPACE(std)string& txt) - { - CommonAST::initialize( t, txt ); - m_line = 0; - m_column = 0; - } - - static ANTLR_USE_NAMESPACE(antlr)RefAST factory() - { - RefJavaAST n(new JavaAST); - return n.get(); - } - - -private: - int m_line; - int m_column; - -private: - JavaAST( const JavaAST& source ); - void operator = ( const JavaAST& source ); -}; - -namespace antlr -{ - -class JavaASTFactory: public ASTFactory -{ -public: - JavaASTFactory(): ASTFactory( "JavaAST", JavaAST::factory ) {} -}; - -} // namespace antlr - -#endif |