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

Detailed Description
Definition at line 35 of file rubycodegenerator.h.
Public Member Functions | |
| RubyCodeGenerator () | |
| RubyCodeGenerator (QDomElement &element) | |
| virtual | ~RubyCodeGenerator () |
| bool | getAutoGenerateAttribAccessors () |
| bool | getAutoGenerateAssocAccessors () |
| virtual CodeViewerDialog * | getCodeViewerDialog (QWidget *parent, CodeDocument *doc, Settings::CodeViewerState state) |
| RubyCodeGenerationPolicy * | getRubyPolicy () |
| CodeDocument * | newClassifierCodeDocument (UMLClassifier *classifier) |
| Uml::Programming_Language | getLanguage () |
| virtual const QStringList | reservedKeywords () const |
Static Public Member Functions | |
| static QString | getListFieldClassName () |
| static QString | cppToRubyType (const QString &cppType) |
| static QString | cppToRubyName (const QString &cppName) |
Protected Member Functions | |
| CodeBlockWithComments * | createClassDecl (UMLClassifier *c, RubyClassifierCodeDocument *doc) |
Constructor & Destructor Documentation
| RubyCodeGenerator::RubyCodeGenerator | ( | ) |
| RubyCodeGenerator::RubyCodeGenerator | ( | QDomElement & | element | ) |
Definition at line 38 of file rubycodegenerator.cpp.
| RubyCodeGenerator::~RubyCodeGenerator | ( | ) | [virtual] |
Member Function Documentation
| bool RubyCodeGenerator::getAutoGenerateAttribAccessors | ( | ) |
A utility method to get the rubyCodeGenerationPolicy()->getAutoGenerateAttribAccessors() value.
Definition at line 74 of file rubycodegenerator.cpp.
| bool RubyCodeGenerator::getAutoGenerateAssocAccessors | ( | ) |
A utility method to get the rubyCodeGenerationPolicy()->getAutoGenerateAssocAccessors() value.
Definition at line 79 of file rubycodegenerator.cpp.
| QString RubyCodeGenerator::getListFieldClassName | ( | ) | [static] |
Get the list variable class name to use.
For Ruby, we have set this to "Array".
Definition at line 84 of file rubycodegenerator.cpp.
| CodeViewerDialog * RubyCodeGenerator::getCodeViewerDialog | ( | QWidget * | parent, | |
| CodeDocument * | doc, | |||
| Settings::CodeViewerState | state | |||
| ) | [virtual] |
Get the editing dialog for this code document.
Reimplemented from CodeGenerator.
Definition at line 62 of file rubycodegenerator.cpp.
| RubyCodeGenerationPolicy * RubyCodeGenerator::getRubyPolicy | ( | ) |
Utility function for getting the ruby code generation policy.
Definition at line 70 of file rubycodegenerator.cpp.
| CodeDocument * RubyCodeGenerator::newClassifierCodeDocument | ( | UMLClassifier * | c | ) | [virtual] |
- Returns:
- ClassifierCodeDocument
- Returns:
- ClassifierCodeDocument
- Parameters:
-
classifier classifier
Implements CodeGenerator.
Definition at line 120 of file rubycodegenerator.cpp.
| Uml::Programming_Language RubyCodeGenerator::getLanguage | ( | ) | [virtual] |
Return the unique language enum that identifies this type of code generator.
Implements CodeGenerator.
Definition at line 57 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
Definition at line 91 of file rubycodegenerator.cpp.
Convert C++ names such as 'm_foobar' or pFoobar to just 'foobar' for ruby.
- Parameters:
-
cppName the C++ name to be converted
Definition at line 108 of file rubycodegenerator.cpp.
| const QStringList RubyCodeGenerator::reservedKeywords | ( | ) | const [virtual] |
get list of reserved keywords
Reimplemented from CodeGenerator.
Definition at line 135 of file rubycodegenerator.cpp.
| CodeBlockWithComments* RubyCodeGenerator::createClassDecl | ( | UMLClassifier * | c, | |
| RubyClassifierCodeDocument * | doc | |||
| ) | [protected] |
create the codeblock that will represent the class declaration for this classifier
The documentation for this class was generated from the following files:
KDE 4.0 API Reference