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

Method addInt

basex-core/src/main/java/org/basex/query/expr/CalcOpt.java:356–356  ·  view source on GitHub ↗

Add, two integers. @param item1 first item @param item2 second item @param info input info @return result @throws QueryException query exception

(final Item item1, final Item item2, final InputInfo info)

Source from the content-addressed store, hash-verified

354 * @throws QueryException query exception
355 */
356 static Itr addInt(final Item item1, final Item item2, final InputInfo info)
357 throws QueryException {
358 final long itr1 = item1.itr(info), itr2 = item2.itr(info);
359 if(itr2 > 0 ? itr1 > Long.MAX_VALUE - itr2 : itr1 < Long.MIN_VALUE - itr2)

Callers 11

startMethod · 0.65
arityMethod · 0.65
evalMethod · 0.65
itemMethod · 0.65
funcIdentityMethod · 0.65
funcIdentityMethod · 0.65
toStringMethod · 0.65
infoMethod · 0.65
printMethod · 0.65
toStringMethod · 0.65
toStringMethod · 0.65

Calls

no outgoing calls

Tested by 1

startMethod · 0.52