diff graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotObjectConstant.java @ 18285:420161aee840

added HotSpotObjectConstant.getSuperclass()
author Doug Simon <doug.simon@oracle.com>
date Thu, 06 Nov 2014 13:48:01 +0100
parents 29ba2a7cdfcb
children ffcbc50063a3
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotObjectConstant.java	Thu Nov 06 13:28:35 2014 +0100
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotObjectConstant.java	Thu Nov 06 13:48:01 2014 +0100
@@ -66,4 +66,12 @@
      * @return {@code null} if this constant does not represent a {@link Class} object
      */
     JavaConstant getComponentType();
+
+    /**
+     * Gets the result of {@link Class#getSuperclass()} for the {@link Class} object represented by
+     * this constant.
+     *
+     * @return {@code null} if this constant does not represent a {@link Class} object
+     */
+    JavaConstant getSuperclass();
 }