MCPcopy Create free account
hub / github.com/BaseXdb/basex / eval

Method eval

basex-core/src/main/java/org/basex/query/expr/CmpG.java:234–239  ·  view source on GitHub ↗

Compares a single item. @param item1 first item to be compared @param item2 second item to be compared @return result of check @throws QueryException query exception

(final Item item1, final Item item2)

Source from the content-addressed store, hash-verified

232 * @throws QueryException query exception
233 */
234 final boolean eval(final Item item1, final Item item2) throws QueryException {
235 if(comparable || item1.comparable(item2) || item1.type.isUntyped() || item2.type.isUntyped()) {
236 return op.eval(item1.compare(item2, null, false, info));
237 }
238 throw compareError(item1, item2, info);
239 }
240
241 @Override
242 public final CmpG invert() {

Callers 1

compareMethod · 0.95

Calls 5

compareErrorMethod · 0.80
isUntypedMethod · 0.65
evalMethod · 0.65
comparableMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected