protected override int DoCompare(DocumentValue o1, DocumentValue o2) { Object value1 = o1.GetMember(name, false); Object value2 = o2.GetMember(name, false); return(ObjectUtils.CompareValues(value1, value2)); }
protected override int DoCompare(IInstance o1, IInstance o2) { Object value1 = o1.GetMemberValue(context, name, false); Object value2 = o2.GetMemberValue(context, name, false); return(ObjectUtils.CompareValues(value1, value2)); }
protected override int DoCompare(DocumentValue o1, DocumentValue o2) { Context co = context.newDocumentContext(o1, false); Object value1 = key.interpret(co); co = context.newDocumentContext(o2, false); Object value2 = key.interpret(co); return(ObjectUtils.CompareValues(value1, value2)); }
protected override int DoCompare(ConcreteInstance o1, ConcreteInstance o2) { Context co = context.newInstanceContext(o1, false); Object value1 = key.interpret(co); co = context.newInstanceContext(o2, false); Object value2 = key.interpret(co); return(ObjectUtils.CompareValues(value1, value2)); }
protected override int DoCompare(DocumentValue o1, DocumentValue o2) { Argument argument = methodCall.getArguments()[0]; argument.Expression = new ValueExpression(AnyType.Instance, o1); Object value1 = methodCall.interpret(context); argument.Expression = new ValueExpression(AnyType.Instance, o2); Object value2 = methodCall.interpret(context); return(ObjectUtils.CompareValues(value1, value2)); }