126 * @param type the element being examined 127 * @return the package of an element 128 */ 129 PackageElement getPackageOf(Element type); 130 131 /** 132 * Returns all members of a type element, whether inherited or 133 * declared directly. For a class the result also includes its 134 * constructors, but not local or anonymous classes. 135 * 136 * <p>Note that elements of certain kinds can be isolated using 137 * methods in {@link ElementFilter}. 138 * 139 * @param type the type being examined 140 * @return all members of the type 141 * @see Element#getEnclosedElements 142 */ 143 List<? extends Element> getAllMembers(TypeElement type); 144 145 /** 146 * Returns all annotations of an element, whether 147 * inherited or directly present. 148 * 149 * @param e the element being examined 150 * @return all annotations of the element 151 * @see Element#getAnnotationMirrors 152 */ 153 List<? extends AnnotationMirror> getAllAnnotationMirrors(Element e); 154 155 /** 156 * Tests whether one type, method, or field hides another. 157 * 158 * @param hider the first element 159 * @param hidden the second element 160 * @return {@code true} if and only if the first element hides 161 * the second 162 */ 163 boolean hides(Element hider, Element hidden); 164 165 /** 166 * Tests whether one method, as a member of a given type, 167 * overrides another method. 168 * When a non-abstract method overrides an abstract one, the 169 * former is also said to <i>implement</i> the latter. 170 * 171 * <p> In the simplest and most typical usage, the value of the | 126 * @param type the element being examined 127 * @return the package of an element 128 */ 129 PackageElement getPackageOf(Element type); 130 131 /** 132 * Returns all members of a type element, whether inherited or 133 * declared directly. For a class the result also includes its 134 * constructors, but not local or anonymous classes. 135 * 136 * <p>Note that elements of certain kinds can be isolated using 137 * methods in {@link ElementFilter}. 138 * 139 * @param type the type being examined 140 * @return all members of the type 141 * @see Element#getEnclosedElements 142 */ 143 List<? extends Element> getAllMembers(TypeElement type); 144 145 /** 146 * Returns all annotations <i>present</i> on an element, whether 147 * directly present or present via inheritance. 148 * 149 * @param e the element being examined 150 * @return all annotations of the element 151 * @see Element#getAnnotationMirrors 152 * @see javax.lang.model.AnnotatedConstruct 153 */ 154 List<? extends AnnotationMirror> getAllAnnotationMirrors(Element e); 155 156 /** 157 * Tests whether one type, method, or field hides another. 158 * 159 * @param hider the first element 160 * @param hidden the second element 161 * @return {@code true} if and only if the first element hides 162 * the second 163 */ 164 boolean hides(Element hider, Element hidden); 165 166 /** 167 * Tests whether one method, as a member of a given type, 168 * overrides another method. 169 * When a non-abstract method overrides an abstract one, the 170 * former is also said to <i>implement</i> the latter. 171 * 172 * <p> In the simplest and most typical usage, the value of the |