Mercurial > hg > graal-jvmci-8
diff jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaType.java @ 23376:ae27c683c128
Make ResolvedJava* types extend AnnotatedElement.
Contributed-by: Vojin Jovanovic <vojin.jovanovic@oracle.com>
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Fri, 06 May 2016 13:21:20 +0200 |
parents | acae988d96ad |
children | 1d4ce2d19e52 |
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaType.java Wed May 04 12:06:51 2016 +0200 +++ b/jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaType.java Fri May 06 13:21:20 2016 +0200 @@ -22,7 +22,7 @@ */ package jdk.vm.ci.meta; -import java.lang.annotation.Annotation; +import java.lang.reflect.AnnotatedElement; import jdk.vm.ci.meta.Assumptions.AssumptionResult; @@ -31,7 +31,7 @@ * thereof. Types, like fields and methods, are resolved through {@link ConstantPool constant pools} * . */ -public interface ResolvedJavaType extends JavaType, ModifiersProvider { +public interface ResolvedJavaType extends JavaType, ModifiersProvider, AnnotatedElement { /** * Checks whether this type has a finalizer method. * @@ -276,22 +276,6 @@ ResolvedJavaField[] getStaticFields(); /** - * Returns all annotations of this class. If no annotations are present, an array of length 0 is - * returned. - */ - Annotation[] getAnnotations(); - - /** - * Returns the annotation for the specified type of this class, if such an annotation is - * present. - * - * @param annotationClass the Class object corresponding to the annotation type - * @return this element's annotation for the specified annotation type if present on this class, - * else {@code null} - */ - <T extends Annotation> T getAnnotation(Class<T> annotationClass); - - /** * Returns the instance field of this class (or one of its super classes) at the given offset, * or {@code null} if there is no such field. *