/** * Evaluate two objects with respect to the * operator semantics. * @param state The state. * @param val1 The first object. * @param val2 The second object. * @return True, if objects fit wrt. the operator semantics. */ public boolean evaluate(IOAVState state, Object val1, Object val2) { val1 = val1 instanceof ILazyValue? ((ILazyValue)val1).getValue(): val1; val2 = val2 instanceof ILazyValue? ((ILazyValue)val2).getValue(): val2; return contains(val1, val2); }
/** * Evaluate two objects with respect to the * operator semantics. * @param state The state. * @param val1 The first object. * @param val2 The second object. * @return True, if objects fit wrt. the operator semantics. */ public boolean evaluate(IOAVState state, Object val1, Object val2) { val1 = val1 instanceof ILazyValue? ((ILazyValue)val1).getValue(): val1; val2 = val2 instanceof ILazyValue? ((ILazyValue)val2).getValue(): val2; return contains(val1, val2); }
/** * Evaluate two objects with respect to the * operator semantics. * @param state The state. * @param val1 The first object. * @param val2 The second object. * @return True, if objects fit wrt. the operator semantics. */ public boolean evaluate(IOAVState state, Object val1, Object val2) { val1 = val1 instanceof ILazyValue? ((ILazyValue)val1).getValue(): val1; val2 = val2 instanceof ILazyValue? ((ILazyValue)val2).getValue(): val2; return !contains(val1, val2); }
/** * Evaluate two objects with respect to the * operator semantics. * @param state The state. * @param val1 The first object. * @param val2 The second object. * @return True, if objects fit wrt. the operator semantics. */ public boolean evaluate(IOAVState state, Object val1, Object val2) { val1 = val1 instanceof ILazyValue? ((ILazyValue)val1).getValue(): val1; val2 = val2 instanceof ILazyValue? ((ILazyValue)val2).getValue(): val2; return !contains(val1, val2); }