Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

CkASTNodeBase.cpp

00001 /*
00002  * Copyright (c) 2003, Raymond Bosman
00003  * Copyright (c) 2003, Frederik Holljen
00004  * All Rights Reserved.
00005  *
00006  * See COPYING for licensing.
00007  */
00008 
00009 
00010 #include "CkASTNodeBase.hpp"
00011 #include <iostream>
00012 
00014 CkASTNodeBase::CkASTNodeBase() : CommonAST()
00015 {
00016     LineNr = 0;
00017     IgnoreScope = false;
00018     ResultType = CkDataType::Undefined;
00019 }
00020 
00022 CkASTNodeBase::CkASTNodeBase( ANTLR_USE_NAMESPACE(antlr)RefToken t ) : CommonAST( t )
00023 {
00024     LineNr = 0;
00025     IgnoreScope = false;
00026     ResultType = CkDataType::Undefined;
00027 }
00028 
00030 CkASTNodeBase::CkASTNodeBase( const CkASTNodeBase& other ) : CommonAST( other )
00031 {
00032     LineNr = other.LineNr;
00033     IgnoreScope = other.IgnoreScope;
00034     ResultType = other.ResultType;
00035 }
00036 
00040 CkASTNodeBase::~CkASTNodeBase()
00041 {
00042 }
00043 
00045 
00048 ANTLR_USE_NAMESPACE(antlr)RefAST CkASTNodeBase::clone( ) const
00049 {
00050     return new CkASTNodeBase( *this );
00051 }
00052 
00054 
00057 void CkASTNodeBase::initialize(int t, const ANTLR_USE_NAMESPACE(std)string& txt)
00058 {
00059     CommonAST::initialize(t, txt);
00060 }
00061 
00063 
00066 void CkASTNodeBase::initialize(ANTLR_USE_NAMESPACE(antlr)RefAST t)
00067 {
00068     CommonAST::initialize(t);
00069 }
00070 
00072 
00075 void CkASTNodeBase::initialize(ANTLR_USE_NAMESPACE(antlr)RefToken tok)
00076 {
00077     CommonAST::initialize(tok);
00078     LineNr = tok->getLine();
00079 }
00080 
00081 #ifdef ANTLR_SUPPORT_XML
00082 
00083 
00086 CkASTNodeBase::void initialize( ANTLR_USE_NAMESPACE(std)istream& in )
00087 {
00088     CommonAST::initialize(in);
00089 }
00090 #endif
00091 
00093 
00096 ANTLR_USE_NAMESPACE(antlr)RefAST CkASTNodeBase::factory( )
00097 {
00098     ANTLR_USE_NAMESPACE(antlr)RefAST ret =
00099         static_cast<ANTLR_USE_NAMESPACE(antlr)RefAST>(RefCkASTNodeBase(new CkASTNodeBase));
00100     return ret;
00101 }
00102 
00104 
00107 void CkASTNodeBase::setResultType( const CkDataType &type )
00108 {
00109     ResultType = type;
00110 }

Generated on Mon Dec 1 14:26:27 2003 for Ck by doxygen 1.3.3