umbrello/umbrello
JavaCodeGenerator Class Reference
#include <javacodegenerator.h>

Detailed Description
Definition at line 35 of file javacodegenerator.h.
Public Member Functions | |
| JavaCodeGenerator () | |
| JavaCodeGenerator (QDomElement &element) | |
| virtual | ~JavaCodeGenerator () |
| void | setCreateANTBuildFile (bool new_var) |
| bool | getCreateANTBuildFile () |
| bool | getAutoGenerateAttribAccessors () |
| bool | getAutoGenerateAssocAccessors () |
| virtual CodeViewerDialog * | getCodeViewerDialog (QWidget *parent, CodeDocument *doc, Settings::CodeViewerState state) |
| JavaCodeGenerationPolicy * | getJavaPolicy () |
| CodeDocument * | newClassifierCodeDocument (UMLClassifier *classifier) |
| Uml::Programming_Language | getLanguage () |
| virtual QStringList | defaultDatatypes () |
| virtual const QStringList | reservedKeywords () const |
Static Public Member Functions | |
| static QString | getListFieldClassName () |
| static QString | fixTypeName (const QString &string) |
Protected Member Functions | |
| CodeBlockWithComments * | createClassDecl (UMLClassifier *c, JavaClassifierCodeDocument *doc) |
| JavaANTCodeDocument * | newANTCodeDocument () |
Constructor & Destructor Documentation
| JavaCodeGenerator::JavaCodeGenerator | ( | ) |
| JavaCodeGenerator::JavaCodeGenerator | ( | QDomElement & | element | ) |
Definition at line 37 of file javacodegenerator.cpp.
| JavaCodeGenerator::~JavaCodeGenerator | ( | ) | [virtual] |
Member Function Documentation
| void JavaCodeGenerator::setCreateANTBuildFile | ( | bool | buildIt | ) |
Set the value of m_createANTBuildFile.
- Parameters:
-
new_var the new value of m_createANTBuildFile
Definition at line 66 of file javacodegenerator.cpp.
| bool JavaCodeGenerator::getCreateANTBuildFile | ( | ) |
Get the value of m_createANTBuildFile.
- Returns:
- the value of m_createANTBuildFile
Definition at line 77 of file javacodegenerator.cpp.
| bool JavaCodeGenerator::getAutoGenerateAttribAccessors | ( | ) |
A utility method to get the javaCodeGenerationPolicy()->getAutoGenerateAttribAccessors() value.
Definition at line 96 of file javacodegenerator.cpp.
| bool JavaCodeGenerator::getAutoGenerateAssocAccessors | ( | ) |
A utility method to get the javaCodeGenerationPolicy()->getAutoGenerateAssocAccessors() value.
Definition at line 101 of file javacodegenerator.cpp.
| QString JavaCodeGenerator::getListFieldClassName | ( | ) | [static] |
Get the list variable class name to use.
For Java, we have set this to "Vector".
Definition at line 106 of file javacodegenerator.cpp.
| CodeViewerDialog * JavaCodeGenerator::getCodeViewerDialog | ( | QWidget * | parent, | |
| CodeDocument * | doc, | |||
| Settings::CodeViewerState | state | |||
| ) | [virtual] |
Get the editing dialog for this code document.
Reimplemented from CodeGenerator.
Definition at line 82 of file javacodegenerator.cpp.
| JavaCodeGenerationPolicy * JavaCodeGenerator::getJavaPolicy | ( | ) |
Utility function for getting the java code generation policy.
Definition at line 92 of file javacodegenerator.cpp.
| CodeDocument * JavaCodeGenerator::newClassifierCodeDocument | ( | UMLClassifier * | c | ) | [virtual] |
- Returns:
- ClassifierCodeDocument
- Returns:
- ClassifierCodeDocument
- Parameters:
-
classifier classifier
Implements CodeGenerator.
Definition at line 138 of file javacodegenerator.cpp.
| Uml::Programming_Language JavaCodeGenerator::getLanguage | ( | ) | [virtual] |
Return the unique language enum that identifies this type of code generator.
Implements CodeGenerator.
Definition at line 58 of file javacodegenerator.cpp.
| QStringList JavaCodeGenerator::defaultDatatypes | ( | ) | [virtual] |
Adds Java's primitives as datatypes.
Reimplemented from CodeGenerator.
Definition at line 157 of file javacodegenerator.cpp.
IF the type is "string" we need to declare it as the Java Object "String" (there is no string primative in Java).
Same thing again for "bool" to "boolean".
Definition at line 116 of file javacodegenerator.cpp.
| const QStringList JavaCodeGenerator::reservedKeywords | ( | ) | const [virtual] |
get list of reserved keywords
Reimplemented from CodeGenerator.
Definition at line 171 of file javacodegenerator.cpp.
| CodeBlockWithComments* JavaCodeGenerator::createClassDecl | ( | UMLClassifier * | c, | |
| JavaClassifierCodeDocument * | doc | |||
| ) | [protected] |
create the codeblock that will represent the class declaration for this classifier
| JavaANTCodeDocument * JavaCodeGenerator::newANTCodeDocument | ( | ) | [protected] |
- Returns:
- JavaANTCodeDocument
- Returns:
- JavaANTCodeDocument
Definition at line 130 of file javacodegenerator.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference