/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.plugin.gdb.server.parser;
/**
* Wrapper for GDB output.
*
* @author Anatoliy Bazko
*/
public class GdbOutput {
private final String output;
private final boolean terminated;
private GdbOutput(String output, boolean terminated) {
this.output = output;
this.terminated = terminated;
}
public static GdbOutput of(String output) {
return new GdbOutput(output, false);
}
public static GdbOutput of(String output, boolean terminated) {
return new GdbOutput(output, terminated);
}
public String getOutput() {
return output;
}
public boolean isTerminated() {
return terminated;
}
}