Class PythonCodeDocComment
java.lang.Object
net.ssehub.easy.instantiation.python.codeArtifacts.PythonCodeDocComment
- All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider,net.ssehub.easy.instantiation.core.model.vilTypes.IVilType,IPythonCodeElement,Storable
Represents a Python doc comment in VTL.
- Author:
- Kevin Schaperjahn
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classNested 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 IPythonCodeElementprivate Stringprivate List<PythonCodeDocComment.ParamComment> Fields inherited from interface net.ssehub.easy.instantiation.python.codeArtifacts.IPythonCodeElement
KEY_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionPythonCodeDocComment(String comment, IPythonCodeElement attachedTo) PythonCodeDocComment(IPythonCodeElement attachedTo) -
Method Summary
Modifier and TypeMethodDescriptionaddParameterComment(String name, String comment) addParameterComment(String name, String type, String comment) addReturnComment(String comment) addReturnType(String type) intvoidsetComment(String comment) 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, getTracerStringValue, hasPythondocComment, isAttribute, isBlock, isClass, isEmptyLine, moveToAttributes, moveToImports
-
Field Details
-
comment
-
attachedTo
-
params
-
returnComment
-
-
Constructor Details
-
PythonCodeDocComment
-
PythonCodeDocComment
-
-
Method Details
-
getComment
-
setComment
-
store
public void store(net.ssehub.easy.instantiation.core.model.templateModel.CodeWriter out) -
getElementCount
public int getElementCount()- Specified by:
getElementCountin interfaceStorable
-
addParameterComment
-
addParameterComment
-
addReturnComment
-
addReturnType
-
getArtifact
- Specified by:
getArtifactin interfaceIPythonCodeElement
-
getParent
- Specified by:
getParentin interfaceIPythonCodeElement
-
setParent
- Specified by:
setParentin interfaceIPythonCodeElement
-