#include <dcodegenerator.h>
◆ DCodeGenerator()
DCodeGenerator::DCodeGenerator |
( |
| ) |
|
◆ ~DCodeGenerator()
DCodeGenerator::~DCodeGenerator |
( |
| ) |
|
|
virtual |
◆ capitalizeFirstLetter()
QString DCodeGenerator::capitalizeFirstLetter |
( |
const QString & |
item | ) |
|
|
static |
General purpose function we may reuse for all types of D code documents.
- Parameters
-
- Returns
- the changed item
◆ defaultDatatypes()
QStringList DCodeGenerator::defaultDatatypes |
( |
| ) |
const |
|
virtual |
Adds D's primitives as datatypes.
- Returns
- the list of primitive datatypes
Reimplemented from CodeGenerator.
◆ fixTypeName()
QString DCodeGenerator::fixTypeName |
( |
const QString & |
item | ) |
|
|
static |
IF the type is "string" we need to declare it as the D Object "String" (there is no string primitive in D). Same thing again for "bool" to "boolean".
- Parameters
-
- Returns
- the changed item
◆ getAutoGenerateAssocAccessors()
bool DCodeGenerator::getAutoGenerateAssocAccessors |
( |
| ) |
|
◆ getAutoGenerateAttribAccessors()
bool DCodeGenerator::getAutoGenerateAttribAccessors |
( |
| ) |
|
◆ getCodeViewerDialog()
Get the editing dialog for this code document. In the D version, we make the ANT build file also available.
Reimplemented from AdvancedCodeGenerator.
◆ getDPolicy()
Utility function for getting the d code generation policy.
- Returns
- generation policy object
◆ getListFieldClassName()
QString DCodeGenerator::getListFieldClassName |
( |
| ) |
|
|
static |
Get the list variable class name to use. For D, we have set this to "Vector".
- Returns
- name of list field class
◆ language()
Return our language.
- Returns
- language identifier
Implements CodeGenerator.
◆ newClassifierCodeDocument()
Create a new classifier code document.
- Parameters
-
classifier | the UML classifier |
- Returns
- the created classifier code document object
Implements AdvancedCodeGenerator.
◆ reservedKeywords()
QStringList DCodeGenerator::reservedKeywords |
( |
| ) |
const |
|
virtual |
Get list of reserved keywords.
- Returns
- the list of reserved keywords
Reimplemented from CodeGenerator.
The documentation for this class was generated from the following files: