BooleanExpression Class

Represents a boolean expression that can be parsed and executed at runtime.

Definition

Namespace: Gemstone.IO.Parsing
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public class BooleanExpression
Inheritance
Object    BooleanExpression

Remarks

Binary operators have the same level of precedence and are evaluated from right to left.

Constructors

BooleanExpression(String) Creates a new instance of the BooleanExpression class.
BooleanExpression(String, IEqualityComparerString) Creates a new instance of the BooleanExpression class.

Properties

Item Gets the variable identified by the given identifier.
Variables Gets the list of variables found while parsing the boolean expression.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Evaluate Evaluates the expression using the current values of the variables.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetVariable Attempts to get the variable identified by the given identifier.

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also