01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.debug.core;
11:
12: import org.eclipse.debug.core.DebugException;
13:
14: /**
15: * The type of an array on a Java debug target.
16: * <p>
17: * Clients are not intended to implement this interface.
18: * </p>
19: * @see IJavaValue
20: * @since 2.0
21: */
22:
23: public interface IJavaArrayType extends IJavaReferenceType {
24:
25: /**
26: * Returns a new instance of an array of this type,
27: * with the specified length.
28: *
29: * @param size the length of the new array
30: * @return a new array of the specified length
31: * @exception DebugException if this method fails. Reasons include:<ul>
32: * <li>Failure communicating with the VM. The DebugException's
33: * status code contains the underlying exception responsible for
34: * the failure.</li>
35: * </ul>
36: */
37: public IJavaArray newInstance(int size) throws DebugException;
38:
39: /**
40: * Returns the type of the elements in this array.
41: *
42: * @return type
43: * @exception DebugException if this method fails. Reasons include:<ul>
44: * <li>Failure communicating with the VM. The exception's
45: * status code contains the underlying exception responsible for
46: * the failure.</li>
47: * </ul>
48: */
49: public IJavaType getComponentType() throws DebugException;
50:
51: }
|