Mercurial > hg > graal-jvmci-8
diff jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaField.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 | 1bbd4a7c274b |
children | c8cdf8d81475 |
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaField.java Wed May 04 12:06:51 2016 +0200 +++ b/jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaField.java Fri May 06 13:21:20 2016 +0200 @@ -22,14 +22,14 @@ */ package jdk.vm.ci.meta; -import java.lang.annotation.Annotation; +import java.lang.reflect.AnnotatedElement; import java.lang.reflect.Modifier; /** * Represents a reference to a resolved Java field. Fields, like methods and types, are resolved * through {@link ConstantPool constant pools}. */ -public interface ResolvedJavaField extends JavaField, ModifiersProvider { +public interface ResolvedJavaField extends JavaField, ModifiersProvider, AnnotatedElement { /** * {@inheritDoc} @@ -61,22 +61,6 @@ ResolvedJavaType getDeclaringClass(); /** - * Returns all annotations of this field. If no annotations are present, an array of length 0 is - * returned. - */ - Annotation[] getAnnotations(); - - /** - * Returns the annotation for the specified type of this field, 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 field, - * else {@code null} - */ - <T extends Annotation> T getAnnotation(Class<T> annotationClass); - - /** * Returns an object representing the unique location identity of this resolved Java field. * * @return the location identity of the field