Jaa


ValueExpression Class

Definition

ValueExpression - represents a property which is an object of any kind or a string expression.

public class ValueExpression : AdaptiveExpressions.Properties.ExpressionProperty<object>
type ValueExpression = class
    inherit ExpressionProperty<obj>
Public Class ValueExpression
Inherits ExpressionProperty(Of Object)
Inheritance
ValueExpression

Remarks

If the value is * a string with '=' prefix then the string is treated as an expression to resolve to a string. * a string without '=' then value is treated as string with string interpolation. * any other type, then it is of that type (int, bool, object, etc.) You can escape the '=' prefix by putting a backslash. Examples: prop = true ==> true prop = "Hello ${user.name}" => "Hello Joe" prop = "=length(user.name)" => 3 prop = "=user.age" => 45. prop = "\=user.age" => "=user.age".

Constructors

ValueExpression()

Initializes a new instance of the ValueExpression class.

ValueExpression(Func<Object,Object>)

Initializes a new instance of the ValueExpression class.

ValueExpression(Object)

Initializes a new instance of the ValueExpression class.

Properties

ExpressionText

Gets or sets the expression text to evaluate to get the value.

(Inherited from ExpressionProperty<T>)
Value

Gets or sets the raw value of the expression property.

(Inherited from ExpressionProperty<T>)

Methods

ConvertObject(Object)

Convert raw object to desired value type.

(Inherited from ExpressionProperty<T>)
GetObject(Object)

Get value as object.

(Inherited from ExpressionProperty<T>)
GetValue(Object)

Get the value.

(Inherited from ExpressionProperty<T>)
SetObject(Object)

Set value as object.

(Inherited from ExpressionProperty<T>)
SetValue(Object)

Sets the value.

ToExpression()

This will return the existing expression or ConstantExpression(Value) if the value is non-complex type.

(Inherited from ExpressionProperty<T>)
ToString()

Returns a string that represents the current object.

(Inherited from ExpressionProperty<T>)
TryGetObject(Object)

Try Get value as object.

(Inherited from ExpressionProperty<T>)
TryGetValue(Object)

Try to Get the value.

(Inherited from ExpressionProperty<T>)

Operators

Implicit(Boolean to ValueExpression)

Converts a boolean value to a ValueExpression instance.

Implicit(DateTime to ValueExpression)

Converts a DateTime value to a ValueExpression instance.

Implicit(Double to ValueExpression)

Converts a double precision floating number value to a ValueExpression instance.

Implicit(Expression to ValueExpression)

Converts an Expression instance to a ValueExpression instance.

Implicit(Int32 to ValueExpression)

Converts an integer value to a ValueExpression instance.

Implicit(Int64 to ValueExpression)

Converts a long integer value to a ValueExpression instance.

Implicit(JToken to ValueExpression)

Converts a JSON Token to a ValueExpression instance.

Implicit(Single to ValueExpression)

Converts a floating point number value to a ValueExpression instance.

Implicit(String to ValueExpression)

Converts a string value to a ValueExpression instance.

Extension Methods

EvaluateExpression(ValueExpression, Object)

Evaluate ValueExpression according the value type.

Applies to