javacodegenerator.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef JAVACODEGENERATOR_H
00020 #define JAVACODEGENERATOR_H
00021
00022 #include <qstring.h>
00023 #include "../codeviewerstate.h"
00024 #include "../codegenerator.h"
00025 #include "../codeblockwithcomments.h"
00026 #include "../umldoc.h"
00027
00028 #include "classifierinfo.h"
00029 #include "javaclassifiercodedocument.h"
00030 #include "javaantcodedocument.h"
00031
00032 #include "javacodegenerationpolicy.h"
00033
00034 class CodeViewerDialog;
00035
00036 class JavaCodeGenerator : public CodeGenerator
00037 {
00038 Q_OBJECT
00039 public:
00040
00041
00042
00043
00044 static const bool DEFAULT_BUILD_ANT_DOC;
00045
00049 JavaCodeGenerator ();
00050 JavaCodeGenerator (QDomElement & element);
00051
00055 virtual ~JavaCodeGenerator ( );
00056
00057
00058
00059
00060
00061
00062
00063
00064
00069 void setCreateANTBuildFile ( bool new_var );
00070
00075 bool getCreateANTBuildFile ( );
00076
00080 bool getAutoGenerateAttribAccessors( );
00081
00085 bool getAutoGenerateAssocAccessors( );
00086
00090 static QString getListFieldClassName();
00091
00094 virtual CodeViewerDialog * getCodeViewerDialog( QWidget* parent, CodeDocument * doc,
00095 Settings::CodeViewerState state);
00096
00097
00098
00099
00100
00101 static QString capitalizeFirstLetter(const QString &string);
00102
00106 JavaCodeGenerationPolicy * getJavaPolicy();
00107
00112 CodeDocument * newClassifierCodeDocument (UMLClassifier * classifier);
00113
00114
00115 Uml::Programming_Language getLanguage();
00116
00120 virtual QStringList defaultDatatypes();
00121
00127 static QString fixTypeName(const QString &string);
00128
00132 virtual const QStringList reservedKeywords() const;
00133
00134 protected:
00135
00139 CodeBlockWithComments * createClassDecl ( UMLClassifier *c, ClassifierInfo *info, JavaClassifierCodeDocument * doc);
00140
00144 JavaANTCodeDocument * newANTCodeDocument ( );
00145
00146 private:
00147
00148 void init();
00149
00150 bool m_createANTBuildFile;
00151 };
00152
00153 #endif // JAVACODEGENERATOR_H
This file is part of the documentation for umbrello Version 3.1.0.