Class PythonCodeTypeSpec
java.lang.Object
net.ssehub.easy.instantiation.python.codeArtifacts.PythonCodeTypeSpec
- All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider,net.ssehub.easy.instantiation.core.model.vilTypes.IVilType,IPythonCodeElement,IPythonCodeTypeSpec,Storable
Represents a Python type (usage) specification in VTL.
- Author:
- Kevin Schaperjahn
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider
net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider.StringComparator -
Field Summary
FieldsFields inherited from interface net.ssehub.easy.instantiation.python.codeArtifacts.IPythonCodeElement
KEY_COMPARATOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPythonCodeTypeSpec(String type, IPythonCodeElement enclosing) protectedPythonCodeTypeSpec(String type, IPythonCodeElement enclosing, PythonCodeImportScope scope) protectedPythonCodeTypeSpec(PythonCodeTypeSpec type, IPythonCodeElement enclosing, PythonCodeImportScope scope) -
Method Summary
Modifier and TypeMethodDescriptionstatic PythonCodeTypeSpeccreate(String type, IPythonCodeElement enclosing) static PythonCodeTypeSpeccreate(String type, IPythonCodeElement enclosing, PythonCodeImportScope scope) getTracerStringValue(net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider.StringComparator comparator) getType()voidsetOutputTypeName(String typeName) voidsetParent(IPythonCodeElement parent) voidstore(net.ssehub.easy.instantiation.core.model.templateModel.CodeWriter out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.ssehub.easy.instantiation.python.codeArtifacts.IPythonCodeElement
addAll, getSortKey, getStringValue, getTopClass, hasPythondocComment, isAttribute, isBlock, isClass, isEmptyLine, moveToAttributes, moveToImportsMethods inherited from interface net.ssehub.easy.instantiation.python.codeArtifacts.Storable
getElementCount, toCode
-
Field Details
-
type
-
enclosing
-
-
Constructor Details
-
PythonCodeTypeSpec
-
PythonCodeTypeSpec
protected PythonCodeTypeSpec(String type, IPythonCodeElement enclosing, PythonCodeImportScope scope) -
PythonCodeTypeSpec
protected PythonCodeTypeSpec(PythonCodeTypeSpec type, IPythonCodeElement enclosing, PythonCodeImportScope scope)
-
-
Method Details
-
create
-
create
public static PythonCodeTypeSpec create(String type, IPythonCodeElement enclosing, PythonCodeImportScope scope) -
getType
-
getArtifact
- Specified by:
getArtifactin interfaceIPythonCodeElement
-
getTracerStringValue
public String getTracerStringValue(net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider.StringComparator comparator) - Specified by:
getTracerStringValuein interfaceIPythonCodeElement
-
getOutputTypeName
- Specified by:
getOutputTypeNamein interfaceIPythonCodeTypeSpec
-
getOutputType
-
setOutputTypeName
- Specified by:
setOutputTypeNamein interfaceIPythonCodeTypeSpec
-
getParent
- Specified by:
getParentin interfaceIPythonCodeElement
-
setParent
- Specified by:
setParentin interfaceIPythonCodeElement
-
store
public void store(net.ssehub.easy.instantiation.core.model.templateModel.CodeWriter out)
-