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

Version Path
calabash-android-0.3.0.pre1 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.22 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.21 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.20 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.19 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.18 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.17 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.16 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.15 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.14 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.13 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.12 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.11 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.10 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.9 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.8 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.7 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.6 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.5 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java
calabash-android-0.2.4 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/Command.java