umbrello/umbrello
#include <javacodegenerator.h>
Static Public Member Functions | |
static QString | fixTypeName (const QString &string) |
static QString | getListFieldClassName () |
Static Public Member Functions inherited from CodeGenerator | |
static QString | cleanName (const QString &name) |
static void | findObjectsRelated (UMLClassifier *c, UMLPackageList &cList) |
static QString | formatDoc (const QString &text, const QString &linePrefix=" *", int lineWidth=80) |
static QString | formatSourceCode (const QString &code, const QString &indentation) |
Protected Member Functions | |
JavaANTCodeDocument * | newANTCodeDocument () |
Protected Member Functions inherited from CodeGenerator | |
bool | openFile (QFile &file, const QString &name) |
QString | overwritableName (const QString &name, const QString &extension) |
void | writeListedCodeDocsToFile (CodeDocumentList *docs) |
Additional Inherited Members | |
Public Slots inherited from CodeGenerator | |
virtual void | checkAddUMLObject (UMLObject *obj) |
virtual void | checkRemoveUMLObject (UMLObject *obj) |
virtual void | syncCodeToDocument () |
Signals inherited from CodeGenerator | |
void | codeGenerated (UMLClassifier *concept, bool generated) |
void | showGeneratedFile (const QString &filename) |
Protected Attributes inherited from CodeGenerator | |
bool | m_applyToAllRemaining |
QHash< QString, CodeDocument * > | m_codeDocumentDictionary |
UMLDoc * | m_document |
Detailed Description
Definition at line 27 of file javacodegenerator.h.
Constructor & Destructor Documentation
JavaCodeGenerator::JavaCodeGenerator | ( | ) |
Constructor.
Definition at line 190 of file javacodegenerator.cpp.
|
virtual |
Destructor.
Definition at line 207 of file javacodegenerator.cpp.
Member Function Documentation
|
virtual |
Adds Java's primitives as datatypes.
- Returns
- a string list of Java primitives
Reimplemented from CodeGenerator.
Definition at line 327 of file javacodegenerator.cpp.
|
static |
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 291 of file javacodegenerator.cpp.
bool JavaCodeGenerator::getAutoGenerateAssocAccessors | ( | ) |
A utility method to get the javaCodeGenerationPolicy()->getAutoGenerateAssocAccessors() value.
Definition at line 273 of file javacodegenerator.cpp.
bool JavaCodeGenerator::getAutoGenerateAttribAccessors | ( | ) |
A utility method to get the javaCodeGenerationPolicy()->getAutoGenerateAttribAccessors() value.
Definition at line 265 of file javacodegenerator.cpp.
|
virtual |
Get the editing dialog for this code document.
In the Java version, we make the ANT build file also available.
Reimplemented from CodeGenerator.
Definition at line 245 of file javacodegenerator.cpp.
bool JavaCodeGenerator::getCreateANTBuildFile | ( | ) |
Get the value of m_createANTBuildFile.
- Returns
- the value of m_createANTBuildFile
Definition at line 236 of file javacodegenerator.cpp.
JavaCodeGenerationPolicy * JavaCodeGenerator::getJavaPolicy | ( | ) |
Utility function for getting the java code generation policy.
Definition at line 257 of file javacodegenerator.cpp.
|
static |
Get the list variable class name to use.
For Java, we have set this to "Vector".
Definition at line 281 of file javacodegenerator.cpp.
|
virtual |
Return "Java".
- Returns
- programming language identifier
Implements CodeGenerator.
Definition at line 215 of file javacodegenerator.cpp.
|
protected |
Create the codeblock that will represent the class declaration for this classifier.
Create ANT code document.
- Returns
- JavaANTCodeDocument object
Definition at line 306 of file javacodegenerator.cpp.
|
virtual |
Create a classifier code document.
- Parameters
-
classifier the UML classifier
- Returns
- the created classifier code document
Implements CodeGenerator.
Definition at line 316 of file javacodegenerator.cpp.
|
virtual |
Get list of reserved keywords.
- Returns
- the string list of reserved keywords for Java
Reimplemented from CodeGenerator.
Definition at line 346 of file javacodegenerator.cpp.
void JavaCodeGenerator::setCreateANTBuildFile | ( | bool | buildIt | ) |
Set the value of m_createANTBuildFile.
- Parameters
-
buildIt the new value of m_createANTBuildFile
Definition at line 224 of file javacodegenerator.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.