1 /******************************************************************************* 2 * Copyright (c) 2000, 2005 IBM Corporation 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 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.jdt.internal.debug.eval.ast.instructions; 12 13 /** 14 * A <code>CompoundInstruction</code> is a container instruction 15 * and may have a size greater than one. 16 */ 17 public abstract class CompoundInstruction extends Instruction { 18 19 private int fSize; 20 21 /** 22 * Constructor for CompoundInstruction. 23 * @param start 24 */ 25 protected CompoundInstruction(int start) { 26 fSize= -start; 27 } 28 29 public void setEnd(int end) { 30 fSize += end; 31 } 32 33 public int getSize() { 34 return fSize; 35 } 36 } 37