Class EzrBoolean
- Namespace
- EzrSquared.Runtime.Types.Core
- Assembly
- ezrSquared-lib.dll
The boolean type object.
public class EzrBoolean : EzrObject, IEzrObject
- Inheritance
-
objectEzrBoolean
- Implements
- Inherited Members
Constructors
EzrBoolean(bool, Context, Position, Position)
The boolean type object.
public EzrBoolean(bool value, Context parentContext, Position startPosition, Position endPosition)
Parameters
valueboolThe base value.
parentContextContextThe parent context.
startPositionPositionThe starting position of the object.
endPositionPositionThe ending position of the object.
Fields
Value
The boolean value of the object.
public readonly bool Value
Field Value
- bool
Properties
Tag
The tag of the type of this object, similar to C# namespace naming conventions.
public override string Tag { get; protected internal set; }
Property Value
- string
TypeName
The name of the type of this object, in plain text, all lowercase. Spaces are allowed.
public override string TypeName { get; protected internal set; }
Property Value
- string
Methods
ComparisonEqual(IEzrObject, RuntimeResult)
Compares the object to another, checks equality.
public override void ComparisonEqual(IEzrObject other, RuntimeResult result)
Parameters
otherIEzrObjectThe other object in the operation.
resultRuntimeResultRuntime result for carrying the result and any errors.
ComparisonNotEqual(IEzrObject, RuntimeResult)
Compares the object to another, checks unequality.
public override void ComparisonNotEqual(IEzrObject other, RuntimeResult result)
Parameters
otherIEzrObjectThe other object in the operation.
resultRuntimeResultRuntime result for carrying the result and any errors.
ComputeHashCode(RuntimeResult)
Evaluates the current object as its hash.
public override int ComputeHashCode(RuntimeResult result)
Parameters
resultRuntimeResultRuntime result for carrying any errors.
Returns
- int
The evaluated value.
EvaluateBoolean(RuntimeResult)
Evaluates the current object as a boolean value.
public override bool EvaluateBoolean(RuntimeResult result)
Parameters
resultRuntimeResultRuntime result for carrying any errors.
Returns
- bool
The evaluated value.
Inversion(RuntimeResult)
Inverts the current object, like, for example, true to false.
public override void Inversion(RuntimeResult result)
Parameters
resultRuntimeResultRuntime result for carrying the result and any errors.
StrictEquals(IEzrObject, RuntimeResult)
Strictly compares the current object to another, taking into account inheritance.
public override bool StrictEquals(IEzrObject other, RuntimeResult result)
Parameters
otherIEzrObjectThe other object in the operation.
resultRuntimeResultRuntime result for carrying any errors.
Returns
- bool
ToString(RuntimeResult)
Evaluates the current object as a string value.
public override string ToString(RuntimeResult result)
Parameters
resultRuntimeResultRuntime result for carrying any errors.
Returns
- string
The evaluated value.