docs.unity3d.com
    Show / Hide Table of Contents

    Class Expression

    Inheritance
    Object
    Expression
    Namespace: Unity.VisualScripting.Dependencies.NCalc
    Syntax
    public class Expression

    Constructors

    Expression(String, EvaluateOptions)

    Declaration
    public Expression(string expression, EvaluateOptions options = EvaluateOptions.None)
    Parameters
    Type Name Description
    String expression
    EvaluateOptions options

    Expression(LogicalExpression, EvaluateOptions)

    Declaration
    public Expression(LogicalExpression expression, EvaluateOptions options = EvaluateOptions.None)
    Parameters
    Type Name Description
    LogicalExpression expression
    EvaluateOptions options

    Fields

    OriginalExpression

    Textual representation of the expression to evaluate.

    Declaration
    protected readonly string OriginalExpression
    Field Value
    Type Description
    String

    ParameterEnumerators

    Declaration
    protected Dictionary<string, IEnumerator> ParameterEnumerators
    Field Value
    Type Description
    Dictionary<String, IEnumerator>

    Properties

    CacheEnabled

    Declaration
    public static bool CacheEnabled { get; set; }
    Property Value
    Type Description
    Boolean

    Error

    Declaration
    public string Error { get; }
    Property Value
    Type Description
    String

    Options

    Declaration
    public EvaluateOptions Options { get; set; }
    Property Value
    Type Description
    EvaluateOptions

    Parameters

    Declaration
    public Dictionary<string, object> Parameters { get; set; }
    Property Value
    Type Description
    Dictionary<String, Object>

    ParsedExpression

    Declaration
    public LogicalExpression ParsedExpression { get; }
    Property Value
    Type Description
    LogicalExpression

    Methods

    Compile(String, Boolean)

    Declaration
    public static LogicalExpression Compile(string expression, bool noCache)
    Parameters
    Type Name Description
    String expression
    Boolean noCache
    Returns
    Type Description
    LogicalExpression

    Evaluate(Flow)

    Declaration
    public object Evaluate(Flow flow)
    Parameters
    Type Name Description
    Flow flow
    Returns
    Type Description
    Object

    HasErrors()

    Pre-compiles the expression in order to check syntax errors. If errors are detected, the Error property contains the message.

    Declaration
    public bool HasErrors()
    Returns
    Type Description
    Boolean

    True if the expression syntax is correct, otherwise false

    UpdateUnityTimeParameters()

    Declaration
    public void UpdateUnityTimeParameters()

    Events

    EvaluateFunction

    Declaration
    public event EvaluateFunctionHandler EvaluateFunction
    Event Type
    Type Description
    EvaluateFunctionHandler

    EvaluateParameter

    Declaration
    public event EvaluateParameterHandler EvaluateParameter
    Event Type
    Type Description
    EvaluateParameterHandler

    Extension Methods

    XAnalyserProvider.Analyser(Object, IGraphContext)
    XAnalyserProvider.Analyser<TAnalyser>(Object, IGraphContext)
    XAnalyserProvider.Analysis(Object, IGraphContext)
    XAnalyserProvider.Analysis<TAnalysis>(Object, IGraphContext)
    XAnalyserProvider.Analyser(Object, GraphReference)
    XAnalyserProvider.Analyser<TAnalyser>(Object, GraphReference)
    XAnalyserProvider.Analysis(Object, GraphReference)
    XAnalyserProvider.Analysis<TAnalysis>(Object, GraphReference)
    XDescriptorProvider.Describe(Object)
    XDescriptorProvider.HasDescriptor(Object)
    XDescriptorProvider.Descriptor(Object)
    XDescriptorProvider.Descriptor<TDescriptor>(Object)
    XDescriptorProvider.Description(Object)
    XDescriptorProvider.Description<TDescription>(Object)
    Cloning.Clone(Object, ICloner, Boolean)
    Cloning.Clone<T>(T, ICloner, Boolean)
    Cloning.CloneViaFakeSerialization(Object)
    Cloning.CloneViaFakeSerialization<T>(T)
    ConversionUtility.IsConvertibleTo(Object, Type, Boolean)
    ConversionUtility.IsConvertibleTo<T>(Object, Boolean)
    ConversionUtility.ConvertTo(Object, Type)
    ConversionUtility.ConvertTo<T>(Object)
    TypeUtility.ToShortString(Object, Int32)
    Serialization.CloneViaSerialization<T>(T, Boolean)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, Boolean)
    Serialization.Serialize(Object, Boolean)
    LinqUtility.Yield<T>(T)
    UnityObjectUtility.IsUnityNull(Object)
    UnityObjectUtility.ToSafeString(Object)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023