public FindStructuresAction(List<InstanceTree> scope, StructDef def, string expr) { _scope = scope; _def = def; if (expr.Length > 0) { _expr = ExpressionParser.Parse(expr); } }
public UnaryExpression(Expression operand, ExprTokenType operation) { _operand = operand; _operation = operation; }
public virtual IConvertible EvaluateFunction(string symbol, Expression[] parameters) { return _delegate.EvaluateFunction(symbol, parameters); }
public TernaryExpression(Expression condition, Expression trueValue, Expression falseValue) { _condition = condition; _trueValue = trueValue; _falseValue = falseValue; }
public LogicalExpression(ExprTokenType operation, Expression lhs, Expression rhs) : base(operation, lhs, rhs) { }
public FunctionExpression(string function, Expression[] parameters) { _function = function; _parameters = parameters; }
public ContextExpression(string contextExpr, Expression expr, Expression[] parameters) { _contextExpr = contextExpr; _expr = expr; _parameters = parameters; }
public CompareExpression(ExprTokenType operation, Expression lhs, Expression rhs) : base(operation, lhs, rhs) { }
public BinaryExpression(ExprTokenType operation, Expression lhs, Expression rhs) { _operation = operation; _lhs = lhs; _rhs = rhs; }
protected void AddCell(StructInstance instance, Expression expr) { instance.AddCell(new ExprCell(this, instance, expr), _hidden); }
public IConvertible EvaluateFunction(string symbol, Expression[] parameters) { NeedData(); IConvertible funcValue = StructFunctions.Instance.Evaluate(symbol, parameters, this); if (funcValue != null) return funcValue; throw new LoadDataException("Unknown symbol " + symbol); }