umbrello/umbrello
#include <javawriter.h>
Additional Inherited Members | |
Public Slots inherited from SimpleCodeGenerator | |
void | syncCodeToDocument () |
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) |
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 inherited from SimpleCodeGenerator | |
QString | findFileName (UMLPackage *concept, const QString &ext) |
bool | hasAbstractOps (UMLClassifier *c) |
bool | hasDefaultValueAttr (UMLClassifier *c) |
QString | indent () |
void | initFromParentDocument () |
QString | overwritableName (UMLPackage *concept, const QString &name, const QString &ext) |
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) |
Protected Attributes inherited from SimpleCodeGenerator | |
QString | className_ |
QString | fileName_ |
bool | m_createDirHierarchyForPackages |
QString | m_endl |
QMap< UMLPackage *, QString > | m_fileMap |
QString | m_indentation |
int | m_indentLevel |
Protected Attributes inherited from CodeGenerator | |
bool | m_applyToAllRemaining |
QHash< QString, CodeDocument * > | m_codeDocumentDictionary |
UMLDoc * | m_document |
Detailed Description
Class JavaWriter is a code generator for UMLClassifier objects.
Create an instance of this class, and feed it a UMLClassifier when calling writeClass and it will generate a java source file for that concept. This is the "old" code generator that does not support code editing in the Modeller but uses significantly less file space because the source code is not replicated in the XMI file.
Definition at line 32 of file javawriter.h.
Constructor & Destructor Documentation
JavaWriter::JavaWriter | ( | ) |
Constructor, initialises a couple of variables.
Definition at line 34 of file javawriter.cpp.
|
virtual |
Destructor, empty.
Definition at line 42 of file javawriter.cpp.
Member Function Documentation
|
virtual |
Overrides method from class CodeGenerator.
- Returns
- the list of default datatypes
Reimplemented from CodeGenerator.
Definition at line 735 of file javawriter.cpp.
|
virtual |
Returns "Java".
- Returns
- the programming language identifier
Implements CodeGenerator.
Definition at line 50 of file javawriter.cpp.
|
virtual |
Call this method to generate java code for a UMLClassifier.
- Parameters
-
c the class to generate code for
Implements SimpleCodeGenerator.
Definition at line 59 of file javawriter.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.