< prev index next >

src/java.compiler/share/classes/javax/lang/model/element/ExecutableElement.java

Print this page




 129      * @return the exceptions and other throwables listed in the
 130      * {@code throws} clause, or an empty list if there are none
 131      */
 132     List<? extends TypeMirror> getThrownTypes();
 133 
 134     /**
 135      * Returns the default value if this executable is an annotation
 136      * type element.  Returns {@code null} if this method is not an
 137      * annotation type element, or if it is an annotation type element
 138      * with no default value.
 139      *
 140      * @return the default value, or {@code null} if none
 141      */
 142     AnnotationValue getDefaultValue();
 143 
 144     /**
 145      * Returns the simple name of a constructor, method, or
 146      * initializer.  For a constructor, the name {@code "<init>"} is
 147      * returned, for a static initializer, the name {@code "<clinit>"}
 148      * is returned, and for an anonymous class or instance
 149      * initializer, an empty name is returned.
 150      *
 151      * @return the simple name of a constructor, method, or
 152      * initializer
 153      */
 154     @Override
 155     Name getSimpleName();
 156 }


 129      * @return the exceptions and other throwables listed in the
 130      * {@code throws} clause, or an empty list if there are none
 131      */
 132     List<? extends TypeMirror> getThrownTypes();
 133 
 134     /**
 135      * Returns the default value if this executable is an annotation
 136      * type element.  Returns {@code null} if this method is not an
 137      * annotation type element, or if it is an annotation type element
 138      * with no default value.
 139      *
 140      * @return the default value, or {@code null} if none
 141      */
 142     AnnotationValue getDefaultValue();
 143 
 144     /**
 145      * Returns the simple name of a constructor, method, or
 146      * initializer.  For a constructor, the name {@code "<init>"} is
 147      * returned, for a static initializer, the name {@code "<clinit>"}
 148      * is returned, and for an anonymous class or instance
 149      * initializer, an <a href=Name.html#empty_name>empty name</a> is returned.
 150      *
 151      * @return the simple name of a constructor, method, or
 152      * initializer
 153      */
 154     @Override
 155     Name getSimpleName();
 156 }
< prev index next >