public override bool Match(ElementParameter param) { ElementParameterNumeric numParam = param as ElementParameterNumeric; if (numParam == null) return false; return value == numParam.value; }
public override bool Match(ElementParameter param) { ElementParameterString stringParam = param as ElementParameterString; if (stringParam == null) return false; return value == stringParam.value; }
public abstract bool Match(ElementParameter param);
public override bool Match(ElementParameter parameter, Dictionary<string, ElementParameter> variables) { return parameter.Match(value); }
public MatchParameterConstant(ElementParameter value) { this.value = value; }
public abstract bool Match(ElementParameter parameter, Dictionary<string, ElementParameter> variables);
public override bool Match(ElementParameter parameter, Dictionary<string, ElementParameter> variables) { // If not a wildcard, store the matching variable if (name.Length > 1) { variables.Add(name, parameter); } return true; }