Class ConstantExpression
A constant expression that always returns the same value regardless of the exchange.
public class ConstantExpression : Expression, IExpression
Inheritance
Implements
Inherited Members
Expression.and(IPredicate),Expression.contains(object),Expression.endsWith(object),Expression.Evaluate<T>(IExchange),Expression.In(params object[]),Expression.isBetween(object, object),Expression.isEqualTo(object),Expression.isGreaterThan(object),Expression.isGreaterThanOrEqualTo(object),Expression.isLessThan(object),Expression.isLessThanOrEqualTo(object),Expression.isNotEqualTo(object),Expression.isNotNull(),Expression.isNull(),Expression.not(),Expression.or(IPredicate),Expression.regex(string),Expression.SetValue(IExchange, object),Expression.startsWith(object),Expression.ToTemplateString()
Properties
Methods
Evaluate<K>(IExchange)
Evaluates the expression and returns the result cast to T.
public override K Evaluate<K>(IExchange exchange)
SetValue(IExchange, object)
Sets a value in the exchange according to this expression's semantics.
public override void SetValue(IExchange exchange, object value)
ToTemplateString()
Serializes this expression to a ${...} template string suitable for URI parameters.
public override string ToTemplateString()
Constructors
ConstantExpression(object)
Initializes a new instance of the class with the specified value.