1
/*******************************************************************************
2
* Copyright (c) 2007 Wind River Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Wind River Systems - initial API and implementation
10
* Ericsson - Modified for additional features in DSF Reference implementation
11
*******************************************************************************/
13
package org.eclipse.cdt.dsf.debug.service.command;
15
import org.eclipse.cdt.dsf.datamodel.IDMContext;
19
* Command interface for creating and manipulating GDB/MI commands
20
* for the DSF GDB reference implemenation. The command represents
21
* the GDB/MI request which will be put on the wire to the GDB
27
public interface ICommand<V extends ICommandResult> {
29
* Takes the supplied command and coalesces it with this one.
30
* The result is a new third command which represent the two
32
* <br>Note: the result type associated with the resurned command may be
33
* different than the result type associated with either of the commands
36
* @return newly created command, or null if command cannot be coalesced
38
public ICommand<? extends ICommandResult> coalesceWith( ICommand<? extends ICommandResult> command );
41
* Returns the context that this command is to be evaluated in. May be null
42
* if the command does not need to be evaluated in a specific context.
44
public IDMContext getContext();