public string Evaluate ( PftContext context ) { return(context.Evaluate(this)); }
public override void Execute ( PftContext context ) { string text = context.Evaluate(Statement); context.Output.Error.WriteLine(text); }
public override void Execute ( PftContext context ) { string argument = context.Evaluate(Argument); Value = ExtractNumber(argument); }
public override void Execute ( PftContext context ) { string text = context.Evaluate(Statement); Trace.WriteLine(text); }
public string Evaluate ( PftContext context ) { string result = context.Evaluate(this); return(result); }
public override void Execute ( PftContext context ) { string text = context.Evaluate(Argument); double[] values = ExtractNumbers(text); Value = values.Min(); }
public override void Execute ( PftContext context ) { string text = context.Evaluate(Statement); context.Output.Error.WriteLine(text); throw new ApplicationException(text); }
public override void Execute ( PftContext context ) { string result = context.Evaluate(Arguments); result = result.Trim(); context.Write(result); }
public override bool Evaluate ( PftContext context ) { string left = context.Evaluate(Left); string right = context.Evaluate(Right); bool result = false; switch (Op) { case ":": result = left.Contains(right); break; case "=": result = Compare(left, right) == 0; break; case "<>": result = Compare(left, right) != 0; break; case ">": result = Compare(left, right) > 0; break; case ">=": result = Compare(left, right) >= 0; break; case "<": result = Compare(left, right) < 0; break; case "<=": result = Compare(left, right) <= 0; break; } return(result); }
public override void Execute ( PftContext context ) { string format = context.Evaluate(Argument).ToUpper(); int[] mfns = context.Client.Search(format); Value = (mfns.Length != 0) ? mfns[0] : 0.0; }
public string Evaluate ( PftContext context, out bool happen ) { string result = context.Evaluate ( this, out happen ); return(result); }
public override void Execute ( PftContext context ) { Argument1.Execute(context); int mfn = (int)Argument1.Value; if (mfn > 0) { string format = context.Evaluate(Argument2); string text = context.Client.FormatRecord(format, mfn); context.Write(text); } }
public override bool Execute ( PftContext context ) { OnBeforeExecution(context); bool happen; string text = context.Evaluate ( Argument, out happen ); Debug.WriteLine(text); OnAfterExecution(context); return(happen); }
public override bool Execute ( PftContext context ) { OnBeforeExecution(context); bool happen; string text = context.Evaluate ( Argument, out happen ); context.Output.Error.WriteLine(text); OnAfterExecution(context); throw new PftFatalException ( text ); }