< prev index next >
src/jdk.vm.ci/share/classes/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaType.java
Print this page
*** 20,39 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.vm.ci.meta;
! import java.lang.annotation.Annotation;
import jdk.vm.ci.meta.Assumptions.AssumptionResult;
/**
* Represents a resolved Java type. Types include primitives, objects, {@code void}, and arrays
* thereof. Types, like fields and methods, are resolved through {@link ConstantPool constant pools}
* .
*/
! public interface ResolvedJavaType extends JavaType, ModifiersProvider {
/**
* Checks whether this type has a finalizer method.
*
* @return {@code true} if this class has a finalizer
*/
--- 20,39 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.vm.ci.meta;
! import java.lang.reflect.AnnotatedElement;
import jdk.vm.ci.meta.Assumptions.AssumptionResult;
/**
* Represents a resolved Java type. Types include primitives, objects, {@code void}, and arrays
* thereof. Types, like fields and methods, are resolved through {@link ConstantPool constant pools}
* .
*/
! public interface ResolvedJavaType extends JavaType, ModifiersProvider, AnnotatedElement {
/**
* Checks whether this type has a finalizer method.
*
* @return {@code true} if this class has a finalizer
*/
*** 282,307 ****
* is, for a single JVM execution the same order is returned each time this method is called.
*/
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.
*
* @param offset the offset of the field to look for
* @return the field with the given offset, or {@code null} if there is no such field.
--- 282,291 ----
< prev index next >