#include <javacodegenerator.h>
JavaCodeGenerator::JavaCodeGenerator |
( |
| ) |
|
JavaCodeGenerator::~JavaCodeGenerator |
( |
| ) |
|
|
virtual |
QStringList JavaCodeGenerator::defaultDatatypes |
( |
| ) |
const |
|
virtual |
Adds Java's primitives as datatypes.
- Returns
- a string list of Java primitives
Reimplemented from CodeGenerator.
QString JavaCodeGenerator::fixTypeName |
( |
const QString & |
string | ) |
|
|
static |
IF the type is "string" we need to declare it as the Java Object "String" (there is no string primitive in Java). Same thing again for "bool" to "boolean".
bool JavaCodeGenerator::getAutoGenerateAssocAccessors |
( |
| ) |
|
bool JavaCodeGenerator::getAutoGenerateAttribAccessors |
( |
| ) |
|
Get the editing dialog for this code document. In the Java version, we make the ANT build file also available.
Reimplemented from AdvancedCodeGenerator.
bool JavaCodeGenerator::getCreateANTBuildFile |
( |
| ) |
|
Get the value of m_createANTBuildFile
- Returns
- the value of m_createANTBuildFile
Utility function for getting the java code generation policy.
QString JavaCodeGenerator::getListFieldClassName |
( |
| ) |
|
|
static |
Get the list variable class name to use. For Java, we have set this to "Vector".
Return "Java".
- Returns
- programming language identifier
Implements CodeGenerator.
Create the codeblock that will represent the class declaration for this classifier.
Create ANT code document.
- Returns
- JavaANTCodeDocument object
Create a classifier code document.
- Parameters
-
classifier | the UML classifier |
- Returns
- the created classifier code document
Implements AdvancedCodeGenerator.
QStringList JavaCodeGenerator::reservedKeywords |
( |
| ) |
const |
|
virtual |
Get list of reserved keywords.
- Returns
- the string list of reserved keywords for Java
Reimplemented from CodeGenerator.
void JavaCodeGenerator::setCreateANTBuildFile |
( |
bool |
buildIt | ) |
|
Set the value of m_createANTBuildFile
- Parameters
-
buildIt | the new value of m_createANTBuildFile |
bool JavaCodeGenerator::m_createANTBuildFile |
|
private |
The documentation for this class was generated from the following files: