
javarepl.console.ConsoleResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javarepl Show documentation
Show all versions of javarepl Show documentation
Java REPL is a simple Read-Eval-Print-Loop for Java language.
package javarepl.console;
import com.googlecode.totallylazy.Sequence;
import static com.googlecode.totallylazy.Sequences.empty;
public class ConsoleResult {
private final String expression;
private final Sequence logs;
public ConsoleResult(String expression, Sequence logs) {
this.expression = expression;
this.logs = logs;
}
public String expression() {
return expression;
}
public Sequence logs() {
return logs;
}
public static ConsoleResult emptyResult() {
return new ConsoleResult("", empty(ConsoleLog.class));
}
@Override
public String toString() {
return expression + " => " + logs.toString("(", ", ", ")");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy