org.snapscript.core.NoStatement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap-all Show documentation
Show all versions of snap-all Show documentation
Dynamic scripting for the JVM
package org.snapscript.core;
import static org.snapscript.core.result.Result.NORMAL;
import org.snapscript.core.constraint.Constraint;
import org.snapscript.core.scope.Scope;
public class NoStatement extends Statement {
private final Execution execution;
public NoStatement() {
this.execution = new NoExecution(NORMAL);
}
@Override
public Execution compile(Scope scope, Constraint returns) throws Exception {
return execution;
}
}