3831 * value is an array containing objects representing the uses of interface
3832 * types to specify interfaces directly extended by the interface. The
3833 * order of the objects in the array corresponds to the order of the
3834 * interface types used in the 'extends' clause of the declaration of this
3835 * {@code Class} object.
3836 *
3837 * <p> If this {@code Class} object represents a class or interface whose
3838 * declaration does not explicitly indicate any annotated superinterfaces,
3839 * the return value is an array of length 0.
3840 *
3841 * <p> If this {@code Class} object represents either the {@code Object}
3842 * class, an array type, a primitive type, or void, the return value is an
3843 * array of length 0.
3844 *
3845 * @return an array representing the superinterfaces
3846 * @since 1.8
3847 */
3848 public AnnotatedType[] getAnnotatedInterfaces() {
3849 return TypeAnnotationParser.buildAnnotatedInterfaces(getRawTypeAnnotations(), getConstantPool(), this);
3850 }
3851 }
|
3831 * value is an array containing objects representing the uses of interface
3832 * types to specify interfaces directly extended by the interface. The
3833 * order of the objects in the array corresponds to the order of the
3834 * interface types used in the 'extends' clause of the declaration of this
3835 * {@code Class} object.
3836 *
3837 * <p> If this {@code Class} object represents a class or interface whose
3838 * declaration does not explicitly indicate any annotated superinterfaces,
3839 * the return value is an array of length 0.
3840 *
3841 * <p> If this {@code Class} object represents either the {@code Object}
3842 * class, an array type, a primitive type, or void, the return value is an
3843 * array of length 0.
3844 *
3845 * @return an array representing the superinterfaces
3846 * @since 1.8
3847 */
3848 public AnnotatedType[] getAnnotatedInterfaces() {
3849 return TypeAnnotationParser.buildAnnotatedInterfaces(getRawTypeAnnotations(), getConstantPool(), this);
3850 }
3851
3852 // Field containing exception thrown during static class initialization.
3853 // This is used to chain the original exception in later NoClassDefFoundErrors.
3854 private transient Throwable exceptionThrownDuringClinit;
3855 private void setExceptionThrownDuringClinit(Throwable throwable) {
3856 exceptionThrownDuringClinit = throwable;
3857 }
3858 }
|