Skip to content

ParsedExpression Class ​

Definition ​

A parsed expression that can be evaluated repeatedly without re-tokenizing or re-parsing.

  • Namespace: JASE.Expressions.Models
  • Assembly: JASE.Expressions.dll

Properties ​

NameDescription
ContainsDivisionGets a value indicating whether the expression contains integer division semantics.
ExpressionHashGets the hash used to cache this expression.
ExpressionTextGets the original expression text.
IsCompiledGets a value indicating whether this expression has been compiled to IL.
RootGets the parsed syntax tree root.

Methods ​

NameDescription
CompiledExpression Compile(ExpressionEvaluator evaluator)Compiles the expression to IL for faster repeated evaluation.
T Evaluate(ExpressionEvaluator evaluator)Evaluates the parsed expression and converts the result to T.
object Evaluate(ExpressionEvaluator evaluator)Evaluates the parsed expression using the supplied evaluator instance.