blob: c01d74b191a1fb2745040f5c7682db3693b9f117 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package org.eclipse.jdt.core;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jdt.internal.core.*;
/**
* Common protocol for Java elements that contain other Java elements.
* <p>
* This interface is not intended to be implemented by clients.
* </p>
*/
public interface IParent {
/**
* Returns the immediate children of this element.
* Unless otherwise specified by the implementing element,
* the children are in no particular order.
*
* @exception JavaModelException if this element does not exist or if an
* exception occurs while accessing its corresponding resource
*/
IJavaElement[] getChildren() throws JavaModelException;
/**
* Returns whether this element has one or more immediate children.
* This is a convenience method, and may be more efficient than
* testing whether <code>getChildren</code> is an empty array.
*
* @exception JavaModelException if this element does not exist or if an
* exception occurs while accessing its corresponding resource
*/
boolean hasChildren() throws JavaModelException;
}
|