umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

javacodegenerator.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov> *
8 * copyright (C) 2004-2020 *
9 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
10 ***************************************************************************/
11
12 #ifndef JAVACODEGENERATOR_H
13 #define JAVACODEGENERATOR_H
14
15 #include "codeviewerstate.h"
16 #include "advancedcodegenerator.h"
17 #include "codeblockwithcomments.h"
18 #include "javaclassifiercodedocument.h"
19 #include "javaantcodedocument.h"
20 #include "javacodegenerationpolicy.h"
21 #include "umldoc.h"
22
23 #include <QString>
24
25 class CodeViewerDialog;
26
27 class JavaCodeGenerator : public AdvancedCodeGenerator
28 {
29 Q_OBJECT
30 public:
31
32 JavaCodeGenerator();
33 virtual ~JavaCodeGenerator();
34
35 void setCreateANTBuildFile(bool buildIt);
36 bool getCreateANTBuildFile();
37
38 bool getAutoGenerateAttribAccessors();
39
40 bool getAutoGenerateAssocAccessors();
41
42 static QString getListFieldClassName();
43
44 virtual CodeViewerDialog * getCodeViewerDialog(QWidget* parent, CodeDocument * doc,
45 Settings::CodeViewerState & state);
46
47 JavaCodeGenerationPolicy * getJavaPolicy();
48
49 CodeDocument * newClassifierCodeDocument(UMLClassifier * classifier);
50
51 Uml::ProgrammingLanguage::Enum language() const;
52
53 virtual QStringList defaultDatatypes();
54
55 static QString fixTypeName(const QString &string);
56
57 virtual QStringList reservedKeywords() const;
58
59 protected:
60
61 // /**
62 // * Create the codeblock that will represent the class declaration
63 // * for this classifier.
64 // */
65 // CodeBlockWithComments * createClassDecl (UMLClassifier *c, JavaClassifierCodeDocument * doc);
66
67 JavaANTCodeDocument * newANTCodeDocument();
68
69 private:
70
71 bool m_createANTBuildFile;
72
73 };
74
75 #endif // JAVACODEGENERATOR_H
JavaCodeGenerator::JavaCodeGenerator
JavaCodeGenerator()
Definition: javacodegenerator.cpp:190
JavaCodeGenerator::getCodeViewerDialog
virtual CodeViewerDialog * getCodeViewerDialog(QWidget *parent, CodeDocument *doc, Settings::CodeViewerState &state)
Definition: javacodegenerator.cpp:246
CodeDocument::setWriteOutCode
void setWriteOutCode(bool new_var)
Definition: codedocument.cpp:154
javacodecomment.h
JavaCodeGenerator::getListFieldClassName
static QString getListFieldClassName()
Definition: javacodegenerator.cpp:282
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
JavaCodeGenerationPolicy::getAutoGenerateAssocAccessors
bool getAutoGenerateAssocAccessors()
Definition: javacodegenerationpolicy.cpp:84
codeblockwithcomments.h
CodeGenerator::cleanName
static QString cleanName(const QString &name)
Definition: codegenerator.cpp:549
Uml::ProgrammingLanguage::Java
@ Java
Definition: basictypes.h:278
CodeViewerDialog::addCodeDocument
void addCodeDocument(CodeDocument *doc)
Definition: codeviewerdialog.cpp:58
codeviewerdialog.h
umbrellosettings.h
JavaCodeGenerator::language
Uml::ProgrammingLanguage::Enum language() const
Definition: javacodegenerator.cpp:216
CodeGenerator::findCodeDocumentByID
CodeDocument * findCodeDocumentByID(const QString &id)
Definition: codegenerator.cpp:110
javaclassifiercodedocument.h
CodeDocument
Definition: codedocument.h:33
JavaCodeGenerator::getCreateANTBuildFile
bool getCreateANTBuildFile()
Definition: javacodegenerator.cpp:237
JavaCodeGenerator::getAutoGenerateAttribAccessors
bool getAutoGenerateAttribAccessors()
Definition: javacodegenerator.cpp:266
JavaCodeGenerator::~JavaCodeGenerator
virtual ~JavaCodeGenerator()
Definition: javacodegenerator.cpp:208
JavaCodeGenerator::m_createANTBuildFile
bool m_createANTBuildFile
Definition: javacodegenerator.h:71
JavaCodeGenerator::getJavaPolicy
JavaCodeGenerationPolicy * getJavaPolicy()
Definition: javacodegenerator.cpp:258
reserved_words
static const char * reserved_words[]
Definition: javacodegenerator.cpp:29
advancedcodegenerator.h
JavaCodeGenerator::setCreateANTBuildFile
void setCreateANTBuildFile(bool buildIt)
Definition: javacodegenerator.cpp:225
UmbrelloSettings::buildANTDocumentJava
static bool buildANTDocumentJava()
Definition: umbrellosettings.h:2572
ClassifierCodeDocument::initCodeClassFields
virtual void initCodeClassFields()
Definition: classifiercodedocument.cpp:540
AdvancedCodeGenerator
Definition: advancedcodegenerator.h:22
AdvancedCodeGenerator::connectSlots
void connectSlots()
Definition: advancedcodegenerator.cpp:112
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
JavaCodeGenerator::getAutoGenerateAssocAccessors
bool getAutoGenerateAssocAccessors()
Definition: javacodegenerator.cpp:274
javacodegenerationpolicy.h
CodeViewerDialog
Definition: codeviewerdialog.h:28
javacodegenerator.h
JavaClassifierCodeDocument
Definition: javaclassifiercodedocument.h:33
JavaCodeGenerator::newANTCodeDocument
JavaANTCodeDocument * newANTCodeDocument()
Definition: javacodegenerator.cpp:307
javaantcodedocument.h
UMLApp::policyExt
CodeGenPolicyExt * policyExt() const
Definition: uml.cpp:2299
uml.h
JavaCodeGenerationPolicy::getAutoGenerateAttribAccessors
bool getAutoGenerateAttribAccessors()
Definition: javacodegenerationpolicy.cpp:75
JavaCodeGenerator::fixTypeName
static QString fixTypeName(const QString &string)
Definition: javacodegenerator.cpp:292
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
codeviewerstate.h
JavaANTCodeDocument
Definition: javaantcodedocument.h:26
JavaCodeGenerator::newClassifierCodeDocument
CodeDocument * newClassifierCodeDocument(UMLClassifier *classifier)
Definition: javacodegenerator.cpp:317
JavaCodeGenerator::defaultDatatypes
virtual QStringList defaultDatatypes()
Definition: javacodegenerator.cpp:328
JavaCodeGenerator
Definition: javacodegenerator.h:28
Settings::CodeViewerState
configurable params for the code viewer tool
Definition: codeviewerstate.h:20
JavaCodeGenerator::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: javacodegenerator.cpp:357
CodeGenerator::addCodeDocument
bool addCodeDocument(CodeDocument *add_object)
Definition: codegenerator.cpp:125
JavaCodeGenerationPolicy
Definition: javacodegenerationpolicy.h:23
umldoc.h