Capítulo 441 de 859
This node represents basic mathematical and logical operations like addition, subtraction or comparisons (e.g. equal()).
Constructor
| Signature |
|---|
new OperatorNode( op : string, aNode : Node, bNode : Node, …params : Node ) |
Properties
| Property | Description |
|---|---|
.aNode : Node | The first input. |
.bNode : Node | The second input. |
.isOperatorNode : boolean (readonly) | This flag can be used for type testing. |
.op : string | The operator. |
Methods
| Method | Description |
|---|---|
.generateNodeType( builder : NodeBuilder, output : string ) : string | This method is overwritten since the node type is inferred from the operator and the input node types. |
.getOperatorMethod( builder : NodeBuilder, output : string ) : string | Returns the operator method name. |