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

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

javacodegenerator.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3
4 SPDX-FileCopyrightText: 2003 Brian Thomas <thomas@mail630.gsfc.nasa.gov>
5 SPDX-FileCopyrightText: 2004-2021 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
6*/
7
8#ifndef JAVACODEGENERATOR_H
9#define JAVACODEGENERATOR_H
10
11#include "codeviewerstate.h"
12#include "advancedcodegenerator.h"
13#include "codeblockwithcomments.h"
14#include "javaclassifiercodedocument.h"
15#include "javaantcodedocument.h"
16#include "javacodegenerationpolicy.h"
17#include "umldoc.h"
18
19#include <QString>
20
21 class CodeViewerDialog;
22
23 class JavaCodeGenerator : public AdvancedCodeGenerator
24{
25 Q_OBJECT
26 public:
27
28 JavaCodeGenerator();
29 virtual ~JavaCodeGenerator();
30
31 void setCreateANTBuildFile(bool buildIt);
32 bool getCreateANTBuildFile();
33
34 bool getAutoGenerateAttribAccessors();
35
36 bool getAutoGenerateAssocAccessors();
37
38 static QString getListFieldClassName();
39
40 virtual CodeViewerDialog * getCodeViewerDialog(QWidget* parent, CodeDocument * doc,
41 Settings::CodeViewerState & state);
42
43 JavaCodeGenerationPolicy * getJavaPolicy();
44
45 CodeDocument * newClassifierCodeDocument(UMLClassifier * classifier);
46
47 Uml::ProgrammingLanguage::Enum language() const;
48
49 virtual QStringList defaultDatatypes() const;
50
51 static QString fixTypeName(const QString &string);
52
53 virtual QStringList reservedKeywords() const;
54
55 protected:
56
57// /**
58// * Create the codeblock that will represent the class declaration
59// * for this classifier.
60// */
61// CodeBlockWithComments * createClassDecl (UMLClassifier *c, JavaClassifierCodeDocument * doc);
62
63 JavaANTCodeDocument * newANTCodeDocument();
64
65 private:
66
67 bool m_createANTBuildFile;
68
69};
70
71#endif // JAVACODEGENERATOR_H
advancedcodegenerator.h
AdvancedCodeGenerator
Definition: advancedcodegenerator.h:18
CodeDocument
Definition: codedocument.h:30
CodeViewerDialog
Definition: codeviewerdialog.h:23
JavaANTCodeDocument
Definition: javaantcodedocument.h:23
JavaCodeGenerationPolicy
Definition: javacodegenerationpolicy.h:19
JavaCodeGenerator
Definition: javacodegenerator.h:24
JavaCodeGenerator::getAutoGenerateAssocAccessors
bool getAutoGenerateAssocAccessors()
Definition: javacodegenerator.cpp:269
JavaCodeGenerator::getAutoGenerateAttribAccessors
bool getAutoGenerateAttribAccessors()
Definition: javacodegenerator.cpp:261
JavaCodeGenerator::getCodeViewerDialog
virtual CodeViewerDialog * getCodeViewerDialog(QWidget *parent, CodeDocument *doc, Settings::CodeViewerState &state)
Definition: javacodegenerator.cpp:241
JavaCodeGenerator::reservedKeywords
virtual QStringList reservedKeywords() const
Definition: javacodegenerator.cpp:352
JavaCodeGenerator::getListFieldClassName
static QString getListFieldClassName()
Definition: javacodegenerator.cpp:277
JavaCodeGenerator::getCreateANTBuildFile
bool getCreateANTBuildFile()
Definition: javacodegenerator.cpp:232
JavaCodeGenerator::setCreateANTBuildFile
void setCreateANTBuildFile(bool buildIt)
Definition: javacodegenerator.cpp:220
JavaCodeGenerator::newANTCodeDocument
JavaANTCodeDocument * newANTCodeDocument()
Definition: javacodegenerator.cpp:302
JavaCodeGenerator::JavaCodeGenerator
JavaCodeGenerator()
Definition: javacodegenerator.cpp:185
JavaCodeGenerator::getJavaPolicy
JavaCodeGenerationPolicy * getJavaPolicy()
Definition: javacodegenerator.cpp:253
JavaCodeGenerator::~JavaCodeGenerator
virtual ~JavaCodeGenerator()
Definition: javacodegenerator.cpp:203
JavaCodeGenerator::language
Uml::ProgrammingLanguage::Enum language() const
Definition: javacodegenerator.cpp:211
JavaCodeGenerator::defaultDatatypes
virtual QStringList defaultDatatypes() const
Definition: javacodegenerator.cpp:323
JavaCodeGenerator::m_createANTBuildFile
bool m_createANTBuildFile
Definition: javacodegenerator.h:67
JavaCodeGenerator::newClassifierCodeDocument
CodeDocument * newClassifierCodeDocument(UMLClassifier *classifier)
Definition: javacodegenerator.cpp:312
JavaCodeGenerator::fixTypeName
static QString fixTypeName(const QString &string)
Definition: javacodegenerator.cpp:287
Settings::CodeViewerState
configurable params for the code viewer tool
Definition: codeviewerstate.h:15
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: umlclassifier.h:35
codeblockwithcomments.h
codeviewerstate.h
javaantcodedocument.h
javaclassifiercodedocument.h
javacodegenerationpolicy.h
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:291
umldoc.h