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

Method get

basex-core/src/main/java/org/basex/util/ConsoleReader.java:38–47  ·  view source on GitHub ↗

Creates a new instance. @return instance of console reader

()

Source from the content-addressed store, hash-verified

36 * @return instance of console reader
37 */
38 public static ConsoleReader get() {
39 if(Reflect.available("jline.console.ConsoleReader")) {
40 try {
41 return new JLineConsoleReader();
42 } catch(final IOException ex) {
43 throw Util.notExpected(ex);
44 }
45 }
46 return new SimpleConsoleReader();
47 }
48
49 /** Simple console reader implementation. */
50 private static final class SimpleConsoleReader extends ConsoleReader {

Callers 1

consoleMethod · 0.95

Calls 2

availableMethod · 0.95
notExpectedMethod · 0.95

Tested by

no test coverage detected