mjplusplus
v0.4.1
|
#include <ClassMember.hpp>
Public Member Functions | |
virtual std::string | getNameForSort () const =0 |
virtual std::string | getName () const =0 |
virtual void | collectDefinition (semantic::SemanticAnalysis &sa, shptr< semantic::symbol::SymbolTable > symbolTable, std::string const &class_name) const =0 |
virtual void | analyze (semantic::SemanticAnalysis &sa, shptr< semantic::symbol::SymbolTable > symbolTable) const =0 |
void | setDeclaration (shptr< ClassDeclaration const > decl) |
shptr< ClassDeclaration const > | getDeclaration () const |
virtual std::string | mangle () const |
![]() | |
virtual void | toString (std::ostream &out, unsigned int indent, bool special=false) const =0 |
virtual void | accept (ASTVisitor &visitor) const |
Protected Attributes | |
shptr< ClassDeclaration const > | declaration |
|
pure virtual |
Implemented in ast::MethodDeclaration, ast::FieldDeclaration, and ast::MainMethodDeclaration.
|
pure virtual |
Implemented in ast::MethodDeclaration, ast::FieldDeclaration, and ast::MainMethodDeclaration.
shptr< ast::ClassDeclaration const > ast::ClassMember::getDeclaration | ( | ) | const |
|
pure virtual |
Implemented in ast::MethodDeclaration, and ast::FieldDeclaration.
|
pure virtual |
Implemented in ast::MethodDeclaration, and ast::FieldDeclaration.
|
virtual |
Returns declaration->getName() with $ replaced by _
Reimplemented in ast::MethodDeclaration, ast::FieldDeclaration, and ast::MainMethodDeclaration.
void ast::ClassMember::setDeclaration | ( | shptr< ClassDeclaration const > | decl | ) |
|
protected |