93 * Gets the metaspace Klass boxed in a {@link JavaConstant}.
94 */
95 Constant klass();
96
97 boolean isPrimaryType();
98
99 int superCheckOffset();
100
101 long prototypeMarkWord();
102
103 int layoutHelper();
104
105 long getFingerprint();
106
107 @Override
108 HotSpotResolvedObjectType getEnclosingType();
109
110 @Override
111 ResolvedJavaMethod getClassInitializer();
112
113 boolean isUnsafeAnonymous();
114
115 }
|
93 * Gets the metaspace Klass boxed in a {@link JavaConstant}.
94 */
95 Constant klass();
96
97 boolean isPrimaryType();
98
99 int superCheckOffset();
100
101 long prototypeMarkWord();
102
103 int layoutHelper();
104
105 long getFingerprint();
106
107 @Override
108 HotSpotResolvedObjectType getEnclosingType();
109
110 @Override
111 ResolvedJavaMethod getClassInitializer();
112
113 /**
114 * Checks whether this type is an unsafe anonymous class.
115 *
116 * @return {@code true} if this type is an unsafe anonymous class
117 */
118 boolean isUnsafeAnonymous();
119
120 /**
121 * Checks whether this type is an unsafe anonymous class.
122 * This method is here to maintain compatibility with JDK11.
123 *
124 * @return {@code true} if this type is an unsafe anonymous class
125 */
126 default boolean isAnonymous() {
127 return isUnsafeAnonymous();
128 }
129
130 }
|