Inheritance: EventDispatcher → Node →
Stack is a helper for Nodes that need to produce stack-based code instead of continuous flow. They are usually needed in cases like If, Else.
Constructs a new stack node.
parent
The parent stack node.
Default is null.
This flag can be used for type testing.
Default is true.
List of nodes.
The output node.
Default is null.
The parent stack node.
Default is null.
Represents a case statement in TSL. The TSL version accepts an arbitrary numbers of values. The last parameter must be the callback method that should be executed in the true case.
params
The values of the Case() statement as well as the callback method.
Returns: A reference to this stack node.
Represents the default code block of a Switch/Case statement.
method
TSL code which is executed in the else case.
Returns: A reference to this stack node.
Represent an else statement in TSL.
method
TSL code which is executed in the else case.
Returns: A reference to this stack node.
Represent an elseif statement in TSL.
boolNode
Represents the condition.
method
TSL code which is executed if the condition evaluates to true.
Returns: A reference to this stack node.
Represent an if statement in TSL.
boolNode
Represents the condition.
method
TSL code which is executed if the condition evaluates to true.
Returns: A reference to this stack node.
Represents a switch statement in TSL.
expression
Represents the expression.
method
TSL code which is executed if the condition evaluates to true.
Returns: A reference to this stack node.
Adds a node to this stack.
node
The node to add.
index
The index where the node should be added.
Default is this.nodes.length.
Returns: A reference to this stack node.
Adds a node to the stack before the current node.
node
The node to add.
Returns: A reference to this stack node.