All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.snapscript.common.command.CommandOperation Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show newest version
package org.snapscript.common.command;

import java.util.concurrent.Callable;

public class CommandOperation implements Callable {
   
   private final Environment environment;
   private final Command command;
   
   public CommandOperation(Command command, Environment environment) {
      this.environment = environment;
      this.command = command;
   }
   
   @Override
   public Console call() throws Exception {
      return command.execute(environment);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy