Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaType.java @ 24151:26a414946c56 jvmci-0.29
Get host class of VM anonymous class (JDK-8182310)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 30 Jun 2017 17:09:57 +0200 |
parents | 7c59192857ff |
children |
comparison
equal
deleted
inserted
replaced
24150:95d0e0762de5 | 24151:26a414946c56 |
---|---|
103 * {@link Class#isAssignableFrom(Class)} in terms of the value return for this type. | 103 * {@link Class#isAssignableFrom(Class)} in terms of the value return for this type. |
104 */ | 104 */ |
105 boolean isAssignableFrom(ResolvedJavaType other); | 105 boolean isAssignableFrom(ResolvedJavaType other); |
106 | 106 |
107 /** | 107 /** |
108 * Returns the {@link ResolvedJavaType} object representing the host class of this VM anonymous | |
109 * class (as opposed to the unrelated concept specified by {@link Class#isAnonymousClass()}) or | |
110 * {@code null} if this object does not represent a VM anonymous class. | |
111 */ | |
112 ResolvedJavaType getHostClass(); | |
113 | |
114 /** | |
108 * Returns true if this type is exactly the type {@link java.lang.Object}. | 115 * Returns true if this type is exactly the type {@link java.lang.Object}. |
109 */ | 116 */ |
110 default boolean isJavaLangObject() { | 117 default boolean isJavaLangObject() { |
111 // Removed assertion due to https://bugs.eclipse.org/bugs/show_bug.cgi?id=434442 | 118 // Removed assertion due to https://bugs.eclipse.org/bugs/show_bug.cgi?id=434442 |
112 return getSuperclass() == null && !isInterface() && getJavaKind() == JavaKind.Object; | 119 return getSuperclass() == null && !isInterface() && getJavaKind() == JavaKind.Object; |