1 /**********************************************************************
2 * Copyright (c) 2015 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Bernd Hufmann - Initial API and implementation
11 * Markus Schorn - Bug 448058: Use org.eclipse.remote in favor of RSE
12 **********************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.remote
.core
.shell
;
15 import java
.util
.List
;
17 import org
.eclipse
.jdt
.annotation
.Nullable
;
20 * Interface for creating a command input to executued in a
21 * {@link ICommandShell} implementation.
23 * @author Bernd Hufmann
25 public interface ICommandInput
{
28 * Return the command output.
30 * It should not be null, but could be empty.
31 * It should return an immutable list.
33 * @return the command output.
35 List
<String
> getInput();
38 * Adds a command segment to the command
41 * the command segment to add. Ignored if null.
43 void add(@Nullable String segment
);
46 * Adds a command segments to the command
49 * the command segments to add. Ignored if null.
50 * Any null segment in list will be ignored too.
52 void addAll(List
<String
> segments
);
This page took 0.045219 seconds and 5 git commands to generate.