Package cruise.umple.compiler
Class PythonGenerator
java.lang.Object
cruise.umple.compiler.CodeGeneratorWithSubptions
cruise.umple.compiler.SuperCodeGenerator
cruise.umple.compiler.JavaGenerator
cruise.umple.compiler.PythonGenerator
- All Implemented Interfaces:
CodeGenerator
,CodeTranslator
public class PythonGenerator extends JavaGenerator
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
compiledTxlPath
static java.lang.String
ReadmeContent
static java.lang.String
ReadmePath
static java.lang.String
TXL_VERSION
static int
UMPLE_TXL_VERSION
static java.lang.String
versionContent
static java.lang.String
versionPath
Fields inherited from class cruise.umple.compiler.SuperCodeGenerator
ConstraintLookupMap, TraceLookupMap, UmpleToPrimitiveMap
-
Constructor Summary
Constructors Constructor Description PythonGenerator()
-
Method Summary
Modifier and Type Method Description void
delete()
ILang
getLanguageFor(UmpleElement aElement)
java.lang.String
toString()
void
writeFile(UmpleElement aClass)
void
writeUncaughtExceptionFile(UmpleClass aClass)
Methods inherited from class cruise.umple.compiler.JavaGenerator
addMainClass, generate, getMainClass, getMainClasses, getUncaughtExceptions, hasMainClasses, indexOfMainClass, initializeLangaugeBasedVariables, isNullable, nameOf, numberOfMainClasses, prepare, relatedTranslate, removeMainClass, setUncaughtExceptions, translate, translate, translate, translate, translate, translate, translate, translate, translate, translate, translateInterfaceType, translateInterfaceValue, typeOf, umpleCVarToLanguagePrimitive, writeObjectFactoryClass, writeObjectFactoryInterface, WriteProxyFiles
Methods inherited from class cruise.umple.compiler.SuperCodeGenerator
getConstraintWithinConstructor, getDontDisplayNextAccessor, getModel, getOutput, getParameterConstraintName, getType, isConstraintWithinConstructor, isDontDisplayNextAccessor, postpare, prepareConstraint, prepareConstraints, setConstraintWithinConstructor, setDontDisplayNextAccessor, setModel, setOutput, setParameterConstraintName, translate, translate, translate
Methods inherited from class cruise.umple.compiler.CodeGeneratorWithSubptions
addSuboption, getSuboption, getSuboptions, getSuboptionValue, hasSuboption, hasSuboptions, indexOfSuboption, numberOfSuboptions, removeSuboption, setSuboption
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface cruise.umple.compiler.CodeTranslator
translate, translate, translate
-
Field Details
-
UMPLE_TXL_VERSION
public static final int UMPLE_TXL_VERSION- See Also:
- Constant Field Values
-
TXL_VERSION
public static final java.lang.String TXL_VERSION- See Also:
- Constant Field Values
-
ReadmePath
public static final java.lang.String ReadmePath- See Also:
- Constant Field Values
-
ReadmeContent
public static final java.lang.String ReadmeContent- See Also:
- Constant Field Values
-
versionPath
public static final java.lang.String versionPath- See Also:
- Constant Field Values
-
versionContent
public static final java.lang.String versionContent -
compiledTxlPath
public static final java.lang.String compiledTxlPath- See Also:
- Constant Field Values
-
-
Constructor Details
-
PythonGenerator
public PythonGenerator()
-
-
Method Details
-
delete
public void delete()- Overrides:
delete
in classJavaGenerator
-
getLanguageFor
- Overrides:
getLanguageFor
in classJavaGenerator
-
writeFile
- Overrides:
writeFile
in classJavaGenerator
- Throws:
java.io.IOException
-
writeUncaughtExceptionFile
- Overrides:
writeUncaughtExceptionFile
in classJavaGenerator
-
toString
public java.lang.String toString()- Overrides:
toString
in classJavaGenerator
-