예제 #1
0
 public override object GetValue(ExecutionContext ctx)
 {
     string res = "";
     if (element != null)
     {
         res += Convert.ToString(element.GetValue(ctx));
     }
     if (concatenation != null)
     {
         res += Convert.ToString(concatenation.GetValue(ctx));
     }
     return res;
 }
예제 #2
0
        public override object GetValue(ExecutionContext ctx)
        {
            string res = "";

            if (text != null)
            {
                res += text.GetValue(ctx);
            }
            if (expressionList != null)
            {
                foreach (Expression ex in expressionList)
                {
                    res += ex.GetValue(ctx);
                }
            }

            return res;
        }
예제 #3
0
        public override object GetValue(ExecutionContext ctx)
        {
            string functionName = function.GetValue(ctx).ToString();
            Functor f = ctx.GetFunction(functionName);
            ArrayList arguments = new ArrayList();
            if (!emptyArgsList)
            {
                if (args.GetType() == typeof(Sequence<Expression>))
                {
                    Sequence<Expression> seq = (Sequence<Expression>)args;

                    foreach (Expression ex in (Sequence<Expression>)args)
                    {
                        arguments.Add(ex.GetValue(ctx));
                    }
                }
                else
                {
                    arguments.Add(((Expression)args).GetValue(ctx));
                }
            }
            return f.Execute(arguments.ToArray(), ctx);
        }
예제 #4
0
 public override object GetValue(ExecutionContext ctx)
 {
     return _value;
 }
예제 #5
0
 public override object GetValue(ExecutionContext ctx)
 {
     return ctx[_idName];
 }
예제 #6
0
 public override object GetValue(ExecutionContext ctx)
 {
     ctx[_receiver._idName] = (_expr != null) ? _expr.GetValue(ctx) : "";
     return string.Format("{0}={1}", _receiver._idName, ctx[_receiver._idName]);
 }
예제 #7
0
 public override object GetValue(ExecutionContext ctx)
 {
     return -(Convert.ToDecimal(computable.GetValue(ctx)));
 }
예제 #8
0
 public abstract object GetValue(ExecutionContext ctx);
예제 #9
0
 public override object GetValue(ExecutionContext ctx)
 {
     return functionName;
 }
예제 #10
0
 public override object GetValue(ExecutionContext ctx)
 {
     return(ctx[_idName]);
 }