KickJava   Java API By Example, From Geeks To Geeks.

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


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  * An interface an object implements 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 public interface IJavaInterfaceType extends IJavaReferenceType {
25             
26    /**
27     * Returns the class objects associated with the implementors of this interface type.
28     * Returns an empty array if there are none.
29     *
30     * @return the class objects associated with the implementors of this interface type
31     * @exception DebugException if this method fails. Reasons include:
32     * <ul><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     * @since 3.0
37     */

38     public IJavaClassType[] getImplementors() throws DebugException;
39     
40     /**
41      * Returns the interface objects associated with the sub-interfaces of this interface type.
42      * Returns an empty array if there are none. The sub-interfaces are those interfaces
43      * that directly extend this interface, that is, those interfaces that declared this interface
44      * in their <code>extends</code> clause.
45      *
46      * @return the interface objects associated with the sub-interfaces of this interface type
47      * @exception DebugException if this method fails. Reasons include:
48      * <ul><li>Failure communicating with the VM. The DebugException's
49      * status code contains the underlying exception responsible for
50      * the failure.</li>
51      * </ul>
52      * @since 3.0
53      */

54     public IJavaInterfaceType[] getSubInterfaces() throws DebugException;
55
56     /**
57      * Returns the interface objects associated with the super-interfaces of this interface type.
58      * Returns an empty array if there are none. The super-interfaces are those interfaces
59      * that are directly extended by this interface, that is, those interfaces that this
60      * interface declared to be extended.
61      *
62      * @return the interface objects associated with the super-interfaces of this interface type
63      * @exception DebugException if this method fails. Reasons include:
64      * <ul><li>Failure communicating with the VM. The DebugException's
65      * status code contains the underlying exception responsible for
66      * the failure.</li>
67      * </ul>
68      * @since 3.0
69      */

70     public IJavaInterfaceType[] getSuperInterfaces() throws DebugException;
71 }
72
73
Popular Tags