Class FunctionNode
A function node.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SpiceSharpBehavioral.Parsers.Nodes
Assembly: SpiceSharpBehavioral.dll
Syntax
public class FunctionNode : Node
Constructors
FunctionNode(String, IReadOnlyList<Node>)
Initializes a new instance of the Function
Declaration
protected FunctionNode(string name, IReadOnlyList<Node> arguments)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name. |
System. |
arguments | The arguments. |
Properties
Arguments
Gets the arguments.
Declaration
public IReadOnlyList<Node> Arguments { get; }
Property Value
Type | Description |
---|---|
System. |
The arguments. |
Name
Gets the name of the function.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System. |
The name. |
Properties
Gets the properties.
Declaration
public override NodeProperties Properties { get; }
Property Value
Type | Description |
---|---|
Node |
The properties. |
Overrides
Methods
Equals(Object)
Determines whether the specified System.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj | The System. |
Returns
Type | Description |
---|---|
System. |
|
Overrides
System.Object.Equals(System.Object)
Function(String, IReadOnlyList<Node>)
Creates a function call.
Declaration
public static FunctionNode Function(string name, IReadOnlyList<Node> arguments)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the function. |
System. |
arguments | The arguments of the function. |
Returns
Type | Description |
---|---|
Function |
The node representing the function call. |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
System.Object.GetHashCode()
ToString()
Converts to string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
A System. |
Overrides
System.Object.ToString()