< prev index next >
src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaType.java
Print this page
@@ -103,10 +103,17 @@
* {@link Class#isAssignableFrom(Class)} in terms of the value return for this type.
*/
boolean isAssignableFrom(ResolvedJavaType other);
/**
+ * Returns the {@link ResolvedJavaType} object representing the host class of this VM anonymous
+ * class (as opposed to the unrelated concept specified by {@link Class#isAnonymousClass()}) or
+ * {@code null} if this object does not represent a VM anonymous class.
+ */
+ ResolvedJavaType getHostClass();
+
+ /**
* Returns true if this type is exactly the type {@link java.lang.Object}.
*/
default boolean isJavaLangObject() {
// Removed assertion due to https://bugs.eclipse.org/bugs/show_bug.cgi?id=434442
return getSuperclass() == null && !isInterface() && getJavaKind() == JavaKind.Object;
< prev index next >