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

Method number

basex-core/src/main/java/org/basex/util/MainParser.java:124–128  ·  view source on GitHub ↗

Returns the next positive numeric argument. @return positive integer @throws BaseXException database exception

()

Source from the content-addressed store, hash-verified

122 * @throws BaseXException database exception
123 */
124 public int number() throws BaseXException {
125 final int i = Strings.toInt(string());
126 if(i < 0) throw usage();
127 return i;
128 }
129
130 /**
131 * Returns an exception with the command usage info.

Callers 4

parseArgsMethod · 0.95
parseArgsMethod · 0.95
parseArgsMethod · 0.95
parseArgsMethod · 0.95

Calls 3

toIntMethod · 0.95
stringMethod · 0.95
usageMethod · 0.95

Tested by 1

parseArgsMethod · 0.76