Class UnaryOperatorNode
A unary operator.
Inherited Members
Namespace: SpiceSharpBehavioral.Parsers.Nodes
Assembly: SpiceSharpBehavioral.dll
Syntax
public class UnaryOperatorNode : Node
Constructors
UnaryOperatorNode(NodeTypes, Node)
Initializes a new instance of the UnaryOperatorNode class.
Declaration
protected UnaryOperatorNode(NodeTypes type, Node argument)
Parameters
Type | Name | Description |
---|---|---|
NodeTypes | type | The type. |
Node | argument | The argument. |
Properties
Argument
Gets the argument.
Declaration
public Node Argument { get; }
Property Value
Type | Description |
---|---|
Node | The argument. |
Properties
Gets the properties.
Declaration
public override NodeProperties Properties { get; }
Property Value
Type | Description |
---|---|
NodeProperties | The properties. |
Overrides
Methods
Equals(Object)
Determines whether the specified System.Object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
Minus(Node)
Creates a unary minus operator for an argument.
Declaration
public static UnaryOperatorNode Minus(Node argument)
Parameters
Type | Name | Description |
---|---|---|
Node | argument | The argument. |
Returns
Type | Description |
---|---|
UnaryOperatorNode | The node representing the unary minus result. |
Not(Node)
Creates a unary bang (!) operator for an argument.
Declaration
public static UnaryOperatorNode Not(Node argument)
Parameters
Type | Name | Description |
---|---|---|
Node | argument | The argument. |
Returns
Type | Description |
---|---|
UnaryOperatorNode | The node representing the unary bang result. |
Plus(Node)
Creates a unary plus operator for an argument.
Declaration
public static UnaryOperatorNode Plus(Node argument)
Parameters
Type | Name | Description |
---|---|---|
Node | argument | The argument. |
Returns
Type | Description |
---|---|
UnaryOperatorNode | The node representing the unary plus result. |
ToString()
Converts to string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |