KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > debug > core > IJavaArrayType


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.debug.core;
12
13
14 import org.eclipse.debug.core.DebugException;
15
16 /**
17  * The type of an array on a Java debug target.
18  * <p>
19  * Clients are not intended to implement this interface.
20  * </p>
21  * @see IJavaValue
22  * @since 2.0
23  */

24
25 public interface IJavaArrayType extends IJavaReferenceType {
26
27     /**
28      * Returns a new instance of an array of this type,
29      * with the specified length.
30      *
31      * @param size the length of the new array
32      * @return a new array of the specified length
33      * @exception DebugException if this method fails. Reasons include:<ul>
34      * <li>Failure communicating with the VM. The DebugException's
35      * status code contains the underlying exception responsible for
36      * the failure.</li>
37      * </ul>
38      */

39     public IJavaArray newInstance(int size) throws DebugException;
40
41     /**
42      * Returns the type of the elements in this array.
43      *
44      * @return type
45      * @exception DebugException if this method fails. Reasons include:<ul>
46      * <li>Failure communicating with the VM. The exception's
47      * status code contains the underlying exception responsible for
48      * the failure.</li>
49      * </ul>
50      */

51     public IJavaType getComponentType() throws DebugException;
52
53 }
54
55
Popular Tags