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

changeset 849
7a75a1803c7a
parent 554
9d9f26857129
child 972
694ff82ca68e
equal deleted inserted replaced
848:df3394337b04 849:7a75a1803c7a
1 /* 1 /*
2 * Copyright (c) 2005, 2009, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2011, 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
46 * @jls3 6.7 Fully Qualified Names and Canonical Names 46 * @jls3 6.7 Fully Qualified Names and Canonical Names
47 */ 47 */
48 Name getQualifiedName(); 48 Name getQualifiedName();
49 49
50 /** 50 /**
51 * Returns the simple name of this package. For an unnamed
52 * package, an empty name is returned
53 *
54 * @return the simple name of this package or an empty name if
55 * this is an unnamed package
56 */
57 @Override
58 Name getSimpleName();
59
60 /**
51 * Returns {@code true} is this is an unnamed package and {@code 61 * Returns {@code true} is this is an unnamed package and {@code
52 * false} otherwise. 62 * false} otherwise.
53 * 63 *
54 * @return {@code true} is this is an unnamed package and {@code 64 * @return {@code true} is this is an unnamed package and {@code
55 * false} otherwise 65 * false} otherwise
56 * @jls3 7.4.2 Unnamed Packages 66 * @jls3 7.4.2 Unnamed Packages
57 */ 67 */
58 boolean isUnnamed(); 68 boolean isUnnamed();
69
70 /**
71 * Returns {@code null} since a package is not enclosed by another
72 * element.
73 *
74 * @return {@code null}
75 */
76 @Override
77 Element getEnclosingElement();
59 } 78 }

mercurial