Sha256: 6b1de598921eede7473b11d9f5d8a30ed0faa940617eb450b39a3b34bc67e696
Contents?: true
Size: 982 Bytes
Versions: 72
Compression:
Stored size: 982 Bytes
Contents
package sh.calaba.instrumentationbackend; import java.util.Arrays; import sh.calaba.instrumentationbackend.actions.Action; public class Command { private String line; private String command; private String[] arguments; public void setCommand(String command) { this.command = command; } public void setArguments(String[] arguments) { this.arguments = arguments; } public String getCommand() { return command; } public String[] getArguments() { return arguments; } public void setLine(String line) { this.line = line; } public String getLine() { return line; } public String toString() { return "Command:'Line:" + getLine() + "," + getCommand() + "', arguments:'" + Arrays.toString(getArguments()) + "'"; } public Result execute() { Action action = InstrumentationBackend.actions.lookup(getCommand()); return action.execute(getArguments()); } }
Version data entries
72 entries across 72 versions & 1 rubygems