umbrello/umbrello
RubyCodeGenerator Class Reference
#include <rubycodegenerator.h>

Public Member Functions | |
| RubyCodeGenerator (QDomElement &element) | |
| RubyCodeGenerator () | |
| virtual | ~RubyCodeGenerator () |
| bool | getAutoGenerateAssocAccessors () |
| bool | getAutoGenerateAttribAccessors () |
| virtual CodeViewerDialog * | getCodeViewerDialog (QWidget *parent, CodeDocument *doc, Settings::CodeViewerState state) |
| Uml::Programming_Language | getLanguage () |
| RubyCodeGenerationPolicy * | getRubyPolicy () |
| CodeDocument * | newClassifierCodeDocument (UMLClassifier *classifier) |
| virtual const QStringList | reservedKeywords () const |
Static Public Member Functions | |
| static QString | cppToRubyName (const QString &cppName) |
| static QString | cppToRubyType (const QString &cppType) |
| static QString | getListFieldClassName () |
Detailed Description
Definition at line 27 of file rubycodegenerator.h.
Constructor & Destructor Documentation
| RubyCodeGenerator::RubyCodeGenerator | ( | ) |
Constructor.
Definition at line 42 of file rubycodegenerator.cpp.
| RubyCodeGenerator::RubyCodeGenerator | ( | QDomElement & | elem | ) |
| RubyCodeGenerator::~RubyCodeGenerator | ( | ) | [virtual] |
Destructor.
Definition at line 49 of file rubycodegenerator.cpp.
Member Function Documentation
Convert C++ names such as 'm_foobar' or pFoobar to just 'foobar' for ruby.
- Parameters:
-
cppName the C++ name to be converted
- Returns:
- the ruby name as string
Definition at line 139 of file rubycodegenerator.cpp.
Convert a C++ type such as 'int' or 'QWidget' to ruby types Integer and Qt::Widget.
- Parameters:
-
cppType the C++ type to be converted
- Returns:
- the ruby type as string
Definition at line 115 of file rubycodegenerator.cpp.
| bool RubyCodeGenerator::getAutoGenerateAssocAccessors | ( | ) |
A utility method to get the rubyCodeGenerationPolicy()->getAutoGenerateAssocAccessors() value.
- Returns:
- flag
Definition at line 95 of file rubycodegenerator.cpp.
| bool RubyCodeGenerator::getAutoGenerateAttribAccessors | ( | ) |
A utility method to get the rubyCodeGenerationPolicy()->getAutoGenerateAttribAccessors() value.
- Returns:
- flag
Definition at line 86 of file rubycodegenerator.cpp.
| CodeViewerDialog * RubyCodeGenerator::getCodeViewerDialog | ( | QWidget * | parent, | |
| CodeDocument * | doc, | |||
| Settings::CodeViewerState | state | |||
| ) | [virtual] |
Get the editing dialog for this code document.
- Returns:
- code viewer dialog object
Reimplemented from CodeGenerator.
Definition at line 66 of file rubycodegenerator.cpp.
| Uml::Programming_Language RubyCodeGenerator::getLanguage | ( | ) | [virtual] |
Return our language.
- Returns:
- language identifier
Implements CodeGenerator.
Definition at line 57 of file rubycodegenerator.cpp.
| QString RubyCodeGenerator::getListFieldClassName | ( | ) | [static] |
Get the list variable class name to use.
For Ruby, we have set this to "Array".
- Returns:
- name of list field class
Definition at line 104 of file rubycodegenerator.cpp.
| RubyCodeGenerationPolicy * RubyCodeGenerator::getRubyPolicy | ( | ) |
Utility function for getting the ruby code generation policy.
- Returns:
- Ruby code generation policy object
Definition at line 77 of file rubycodegenerator.cpp.
| CodeDocument * RubyCodeGenerator::newClassifierCodeDocument | ( | UMLClassifier * | classifier | ) | [virtual] |
Create a new classifier code document.
- Parameters:
-
classifier the UML classifier
- Returns:
- a new classifier code document
Implements CodeGenerator.
Definition at line 153 of file rubycodegenerator.cpp.
| const QStringList RubyCodeGenerator::reservedKeywords | ( | ) | const [virtual] |
Get list of reserved keywords.
- Returns:
- the list of reserved keywords
Reimplemented from CodeGenerator.
Definition at line 173 of file rubycodegenerator.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference