Class PythonCodeDecorator
java.lang.Object
net.ssehub.easy.instantiation.python.codeArtifacts.PythonCodeDecorator
- All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider,net.ssehub.easy.instantiation.core.model.vilTypes.IVilType,IPythonCodeElement,Storable
Represents a Python decorator 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
FieldsModifier and TypeFieldDescriptionprivate List<PythonCodeDecoratorArg> private IPythonCodeElementprivate StringFields inherited from interface net.ssehub.easy.instantiation.python.codeArtifacts.IPythonCodeElement
KEY_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionPythonCodeDecorator(String name, IPythonCodeElement decorated, PythonCodeImportScope scope) -
Method Summary
Modifier and TypeMethodDescriptionaddArgument(String value) intgetTracerStringValue(net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider.StringComparator comparator) voidsetParent(IPythonCodeElement decorated) voidstore(net.ssehub.easy.instantiation.core.model.templateModel.CodeWriter out) voidstoreNoLn(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, moveToImports
-
Field Details
-
name
-
decorated
-
args
-
-
Constructor Details
-
PythonCodeDecorator
PythonCodeDecorator(String name, IPythonCodeElement decorated, PythonCodeImportScope scope)
-
-
Method Details
-
getTracerStringValue
public String getTracerStringValue(net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider.StringComparator comparator) - Specified by:
getTracerStringValuein interfaceIPythonCodeElement
-
addArgument
-
store
public void store(net.ssehub.easy.instantiation.core.model.templateModel.CodeWriter out) -
storeNoLn
public void storeNoLn(net.ssehub.easy.instantiation.core.model.templateModel.CodeWriter out) -
getArtifact
- Specified by:
getArtifactin interfaceIPythonCodeElement
-
getParent
- Specified by:
getParentin interfaceIPythonCodeElement
-
setParent
- Specified by:
setParentin interfaceIPythonCodeElement
-
getElementCount
public int getElementCount()- Specified by:
getElementCountin interfaceStorable
-