class StreamCodeGenerator extends AnyRef
Class containing functions for the translation of single TeSSLa stream expressions to imperative code
- Alphabetic
- By Inheritance
- StreamCodeGenerator
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new StreamCodeGenerator(nonStreamCodeGenerator: NonStreamCodeGenerator)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def produceInputFromAPICode(inStream: core.TesslaAST.Core.Identifier, typ: core.TesslaAST.Core.Type, currSrc: SourceListing): SourceListing
Produces code reading the std input (variable inputStream and value) and passes it to the _value variable of an input stream.
Produces code reading the std input (variable inputStream and value) and passes it to the _value variable of an input stream. For parsing the input string to an exact value a function [TC]inputParse is called which has to be translated in the following phases.
- inStream
The input stream to be handled
- typ
The input stream's type. Must be Events[...].
- currSrc
The source listing the generated block is added to. There is code attached to the inputProcessing section.
- returns
The modified source listing
- def produceInputFromConsoleCode(inStream: core.TesslaAST.Core.Identifier, typ: core.TesslaAST.Core.Type, currSrc: SourceListing): SourceListing
Produces code reading the std input (variable inputStream and value) and passes it to the _value variable of an input stream.
Produces code reading the std input (variable inputStream and value) and passes it to the _value variable of an input stream. For parsing the input string to an exact value a function [TC]inputParse is called which has to be translated in the following phases.
- inStream
The input stream to be handled
- typ
The input stream's type. Must be Events[...].
- currSrc
The source listing the generated block is added to. There is code attached to the inputProcessing section.
- returns
The modified source listing
- def produceInputUnchangeCode(inStream: core.TesslaAST.Core.Identifier, currSrc: SourceListing): SourceListing
Produces code resetting the changed flags of input variables.
Produces code resetting the changed flags of input variables.
- inStream
The inStream to be reseted.
- currSrc
The source listing the generated block is added to. There is code attached to the tailSource section.
- returns
The modified source listing
- def produceOutputToAPICode(id: core.TesslaAST.Core.Identifier, t: core.TesslaAST.Core.Type, nameOpt: Option[String], currSrc: SourceListing, raw: Boolean): SourceListing
Add code for output generation (calling of [TC]output) to the source listing.
Add code for output generation (calling of [TC]output) to the source listing. [TC]output gets value, error, timestamp passed and if the printing format is raw (i.e. only value, not the current timestamp) and has to be translated accordingly in the final code generation
- id
The id of the stream to be printed
- t
id's type. Must be Events[...]
- nameOpt
The alias name of id for printing. Optional.
- currSrc
The source listing the generated block is added to. There is code attached to the tailSource section.
- raw
If the output should be printed raw (without timestamp). Is passed to [TC]output.
- returns
The modified source listing
- def produceOutputToConsoleCode(id: core.TesslaAST.Core.Identifier, t: core.TesslaAST.Core.Type, nameOpt: Option[String], currSrc: SourceListing, raw: Boolean): SourceListing
Add code for output generation (calling of [TC]output) to the source listing.
Add code for output generation (calling of [TC]output) to the source listing. [TC]output gets value, error, timestamp passed and if the printing format is raw (i.e. only value, not the current timestamp) and has to be translated accordingly in the final code generation
- id
The id of the stream to be printed
- t
id's type. Must be Events[...]
- nameOpt
The alias name of id for printing. Optional.
- currSrc
The source listing the generated block is added to. There is code attached to the tailSource section.
- raw
If the output should be printed raw (without timestamp). Is passed to [TC]output.
- returns
The modified source listing
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def translateExternSignalExpression(id: core.TesslaAST.Core.Identifier, e: core.TesslaAST.Core.ExternExpression, args: Seq[core.TesslaAST.Core.ExpressionArg], typeArgs: Seq[core.TesslaAST.Core.Type], currSource: SourceListing): SourceListing
Translates an assignment to a stream variable to the corresponding ImpLan Code and attaches it in a given source listing.
Translates an assignment to a stream variable to the corresponding ImpLan Code and attaches it in a given source listing. The assigned expression has to be (and is always in TeSSLa Core) an application.
- id
The id which is assigned (must be of stream type)
- e
The expression which is applicated with args and typeArgs and then assigned
- args
The arguments passed to e
- typeArgs
The type arguments passed to e
- currSource
The source listing where the generated code is attached to. It is attached to the stepSource section of the source listing.
- returns
The modified source listing
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated