javax0.jamal.prog.commands.Output Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jamal-prog Show documentation
Show all versions of jamal-prog Show documentation
Jamal module for Programmatic Extension
package javax0.jamal.prog.commands;
import javax0.jamal.api.BadSyntax;
public class Output implements Command {
private final Expression expression;
public Output(final Expression expression) {
this.expression = expression;
}
@Override
public String execute(final Context ctx) throws BadSyntax {
ctx.step();
return expression.execute(ctx);
}
}