#include <stringliteral.h>
Inheritance diagram for StringLiteral:
Public Member Functions | |
StringLiteral (SrcPosition *position, string str) | |
StringLiteral (const StringLiteral &stringLiteral) | |
virtual | ~StringLiteral () |
string | getStr () const |
virtual Ast & | operator= (const Ast &ast) |
virtual bool | operator== (const Ast &ast) const |
virtual VisitorReturn * | visit (Visitor &visitor) |
virtual Ast & | clone () const |
Private Attributes | |
string | str |
|
Definition at line 12 of file stringliteral.h. Referenced by clone().
00012 : Expression(position), Ast(position), str(str) {} |
|
Definition at line 13 of file stringliteral.h. References Ast::position.
00013 : Expression(position), Ast(position), str(stringLiteral.str) {} |
|
Definition at line 14 of file stringliteral.h.
00014 {} |
|
Implements Ast. Definition at line 28 of file stringliteral.h. References StringLiteral(). Referenced by SimpleFieldDeclaration::clone(), SimpleImport::operator=(), and SimpleFieldDeclaration::operator=().
00028 { 00029 return *(new StringLiteral(new SrcPosition(*this->position), this->str)); 00030 } |
|
Definition at line 16 of file stringliteral.h.
00016 { 00017 return this->str; 00018 } |
|
Reimplemented from Expression. Definition at line 3 of file stringliteral.cpp. References Expression::operator=(), and str.
00003 { 00004 const StringLiteral& stringLiteral = dynamic_cast<const StringLiteral&>(ast); 00005 00006 Expression::operator=(ast); 00007 this->str = stringLiteral.str; 00008 00009 return (*this); 00010 } |
|
Reimplemented from Expression. Definition at line 13 of file stringliteral.cpp. References Expression::operator==(), and str.
00013 { 00014 const StringLiteral& stringLiteral = dynamic_cast<const StringLiteral&>(ast); 00015 return this->str == stringLiteral.str && Expression::operator==(ast); 00016 } |
|
Implements Ast. Definition at line 24 of file stringliteral.h. References Visitor::visitStringLiteral().
00024 { 00025 return visitor.visitStringLiteral(this); 00026 } |
|
Definition at line 10 of file stringliteral.h. Referenced by operator=(), and operator==(). |