umbrello: umbrello/codegenerators/java/javacodegenerator.h Source File

umbrello 2.32.0 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
advancedcodegenerator.h
AdvancedCodeGenerator
Definition: advancedcodegenerator.h:22
CodeDocument
Definition: codedocument.h:34
CodeViewerDialog
Definition: codeviewerdialog.h:28
JavaANTCodeDocument
Definition: javaantcodedocument.h:27
JavaCodeGenerationPolicy
Definition: javacodegenerationpolicy.h:23
JavaCodeGenerator
Definition: javacodegenerator.h:28
JavaCodeGenerator::getAutoGenerateAssocAccessors
bool getAutoGenerateAssocAccessors()
Definition: javacodegenerator.cpp:274
JavaCodeGenerator::getAutoGenerateAttribAccessors
bool getAutoGenerateAttribAccessors()
Definition: javacodegenerator.cpp:266
JavaCodeGenerator::getCodeViewerDialog
virtual CodeViewerDialog * getCodeViewerDialog(QWidget *parent, CodeDocument *doc, Settings::CodeViewerState &state)
Definition: javacodegenerator.cpp:246
JavaCodeGenerator::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: javacodegenerator.cpp:357
JavaCodeGenerator::getListFieldClassName
static QString getListFieldClassName()
Definition: javacodegenerator.cpp:282
JavaCodeGenerator::getCreateANTBuildFile
bool getCreateANTBuildFile()
Definition: javacodegenerator.cpp:237
JavaCodeGenerator::setCreateANTBuildFile
void setCreateANTBuildFile(bool buildIt)
Definition: javacodegenerator.cpp:225
JavaCodeGenerator::newANTCodeDocument
JavaANTCodeDocument * newANTCodeDocument()
Definition: javacodegenerator.cpp:307
JavaCodeGenerator::JavaCodeGenerator
JavaCodeGenerator()
Definition: javacodegenerator.cpp:190
JavaCodeGenerator::defaultDatatypes
virtual QStringList defaultDatatypes()
Definition: javacodegenerator.cpp:328
JavaCodeGenerator::getJavaPolicy
JavaCodeGenerationPolicy * getJavaPolicy()
Definition: javacodegenerator.cpp:258
JavaCodeGenerator::~JavaCodeGenerator
virtual ~JavaCodeGenerator()
Definition: javacodegenerator.cpp:208
JavaCodeGenerator::language
Uml::ProgrammingLanguage::Enum language() const
Definition: javacodegenerator.cpp:216
JavaCodeGenerator::m_createANTBuildFile
bool m_createANTBuildFile
Definition: javacodegenerator.h:71
JavaCodeGenerator::newClassifierCodeDocument
CodeDocument * newClassifierCodeDocument(UMLClassifier *classifier)
Definition: javacodegenerator.cpp:317
JavaCodeGenerator::fixTypeName
static QString fixTypeName(const QString &string)
Definition: javacodegenerator.cpp:292
Settings::CodeViewerState
configurable params for the code viewer tool
Definition: codeviewerstate.h:20
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
codeblockwithcomments.h
codeviewerstate.h
javaantcodedocument.h
javaclassifiercodedocument.h
javacodegenerationpolicy.h
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:305
umldoc.h