src/share/classes/javax/lang/model/element/PackageElement.java

changeset 1181
cf2496340fef
parent 972
694ff82ca68e
child 2525
2eb010b6cb22
equal deleted inserted replaced
1180:f00afa80f1f0 1181:cf2496340fef
1 /* 1 /*
2 * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
23 * questions. 23 * questions.
24 */ 24 */
25 25
26 package javax.lang.model.element; 26 package javax.lang.model.element;
27 27
28 import java.util.List;
29
28 /** 30 /**
29 * Represents a package program element. Provides access to information 31 * Represents a package program element. Provides access to information
30 * about the package and its members. 32 * about the package and its members.
31 * 33 *
32 * @author Joseph D. Darcy 34 * @author Joseph D. Darcy
47 */ 49 */
48 Name getQualifiedName(); 50 Name getQualifiedName();
49 51
50 /** 52 /**
51 * Returns the simple name of this package. For an unnamed 53 * Returns the simple name of this package. For an unnamed
52 * package, an empty name is returned 54 * package, an empty name is returned.
53 * 55 *
54 * @return the simple name of this package or an empty name if 56 * @return the simple name of this package or an empty name if
55 * this is an unnamed package 57 * this is an unnamed package
56 */ 58 */
57 @Override 59 @Override
58 Name getSimpleName(); 60 Name getSimpleName();
61
62 /**
63 * Returns the {@linkplain NestingKind#TOP_LEVEL top-level}
64 * classes and interfaces within this package. Note that
65 * subpackages are <em>not</em> considered to be enclosed by a
66 * package.
67 *
68 * @return the top-level classes and interfaces within this
69 * package
70 */
71 @Override
72 List<? extends Element> getEnclosedElements();
59 73
60 /** 74 /**
61 * Returns {@code true} is this is an unnamed package and {@code 75 * Returns {@code true} is this is an unnamed package and {@code
62 * false} otherwise. 76 * false} otherwise.
63 * 77 *

mercurial