Generate Python code for parameters.
More...
Generate Python code for parameters.
◆ generatePythonGetters()
| String org.lflang.generator.python.PythonParameterGenerator.generatePythonGetters |
( |
ReactorDecl | decl | ) |
|
|
static |
Generate Python code getters for parameters of reactor 'decl'.
- Parameters
-
| decl | The reactor declaration |
- Returns
- The generated code as a StringBuilder
◆ generatePythonInitializer()
| String org.lflang.generator.python.PythonParameterGenerator.generatePythonInitializer |
( |
ParameterInstance | p | ) |
|
|
static |
Return a Python expression that can be used to initialize the specified parameter instance.
If the parameter initializer refers to other parameters, then those parameter references are replaced with accesses to the Python reactor instance class of the parents of those parameters.
- Parameters
-
| p | The parameter instance to create initializer for |
- Returns
- Initialization code
◆ generatePythonInstantiations()
| String org.lflang.generator.python.PythonParameterGenerator.generatePythonInstantiations |
( |
ReactorDecl | decl, |
|
|
PythonTypes | types ) |
|
static |
Generate Python code that instantiates and initializes parameters for a reactor 'decl'.
- Parameters
-
| decl | The reactor declaration |
| types | The Python type helper. |
- Returns
- The generated code as a StringBuilder
The documentation for this class was generated from the following file:
- /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/generator/python/PythonParameterGenerator.java