1
/*******************************************************************************
2
* Copyright (c) 2000, 2006 QNX Software 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
* QNX Software Systems - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.debug.mi.core.output;
14
* GDB/MI list semantic.
16
public class MIList extends MIValue {
18
final static MIResult[] nullResults = new MIResult[0];
19
final static MIValue[] nullValues = new MIValue[0];
21
MIResult[] results = nullResults;
22
MIValue[] values = nullValues;
24
public MIResult[] getMIResults() {
28
public void setMIResults(MIResult[] res) {
32
public MIValue[] getMIValues() {
36
public void setMIValues(MIValue[] vals) {
40
public String toString() {
41
StringBuffer buffer = new StringBuffer();
43
for (int i = 0; i < results.length; i++) {
47
buffer.append(results[i].toString());
49
for (int i = 0; i < values.length; i++) {
53
buffer.append(values[i].toString());
56
return buffer.toString();