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

Method getOption

basex-core/src/main/java/org/basex/core/Command.java:336–340  ·  view source on GitHub ↗

Returns the specified command option. @param typ options enumeration @param token type @return option

(final Class<E> typ)

Source from the content-addressed store, hash-verified

334 * @return option
335 */
336 protected final <E extends Enum<E>> E getOption(final Class<E> typ) {
337 final E e = getOption(args[0], typ);
338 if(e == null) error(UNKNOWN_TRY_X, args[0]);
339 return e;
340 }
341
342 /**
343 * Adds the name of the database that has been addressed by the argument index.

Callers 8

buildLineContentFunction · 0.80
setSelectionNoUndoFunction · 0.80
configureMouseFunction · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 2

errorMethod · 0.95
debugMethod · 0.95

Tested by

no test coverage detected