
net.java.html.lib.node.readline.ReadLine Maven / Gradle / Ivy
The newest version!
package net.java.html.lib.node.readline;
public class ReadLine extends net.java.html.lib.node.events.EventEmitter {
protected ReadLine(net.java.html.lib.Objs.Constructor> c, java.lang.Object js) {
super(c, js);
}
private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
$Constructor() {
super(ReadLine.class);
}
@Override
public ReadLine create(java.lang.Object obj) {
return obj == null ? null : new ReadLine(this, obj);
}
};
private static final $Constructor $AS = new $Constructor();
public static ReadLine $as(java.lang.Object obj) {
return $AS.create(obj);
}
public void close() {
$Typings$.close$14($js(this));
}
public net.java.html.lib.node.readline.ReadLine pause() {
return (net.java.html.lib.node.readline.ReadLine)net.java.html.lib.node.readline.ReadLine.$as($Typings$.pause$15($js(this)));
}
public void prompt(java.lang.Boolean preserveCursor) {
$Typings$.prompt$16($js(this), preserveCursor);
}
public void prompt() {
$Typings$.prompt$17($js(this));
}
public void question(java.lang.String query, net.java.html.lib.Function.A1 super java.lang.String,? extends java.lang.Void> callback) {
$Typings$.question$18($js(this), query, net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(callback, new Class[] {java.lang.String.class})));
}
public net.java.html.lib.node.readline.ReadLine resume() {
return (net.java.html.lib.node.readline.ReadLine)net.java.html.lib.node.readline.ReadLine.$as($Typings$.resume$19($js(this)));
}
public void setPrompt(java.lang.String prompt) {
$Typings$.setPrompt$20($js(this), prompt);
}
public void write(java.lang.String data, net.java.html.lib.node.readline.Key key) {
$Typings$.write$21($js(this), /* UnionType*/$js(data), /* FirstTypeNode*/$js(key));
}
public void write(net.java.html.lib.node.Buffer data, net.java.html.lib.node.readline.Key key) {
$Typings$.write$21($js(this), /* UnionType*/$js(data), /* FirstTypeNode*/$js(key));
}
public void write(java.lang.String data) {
$Typings$.write$22($js(this), /* UnionType*/$js(data));
}
public void write(net.java.html.lib.node.Buffer data) {
$Typings$.write$22($js(this), /* UnionType*/$js(data));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy