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 |
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 * |