changeset 51056:4ae74db0ee18 jep-334

adding method isOwnerInterface to ConstantMethodHandleDesc
author vromero
date Fri, 08 Jun 2018 15:25:24 -0700
parents a2438bc09010
children d456e9c21348 33043a17cb8e
files src/java.base/share/classes/java/lang/constant/ConstantMethodHandleDesc.java
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/constant/ConstantMethodHandleDesc.java	Fri Jun 08 12:28:45 2018 -0700
+++ b/src/java.base/share/classes/java/lang/constant/ConstantMethodHandleDesc.java	Fri Jun 08 15:25:24 2018 -0700
@@ -124,6 +124,13 @@
     public int refKind() { return kind.refKind; }
 
     /**
+     * Indicates if the method is declared by an interface
+     *
+     * @return true if the method is declared by an interface
+     */
+    public boolean isOwnerInterface() { return kind.isInterface; }
+
+    /**
      * Return a {@link ClassDesc} describing the class declaring the
      * method or field described by this nominal descriptor.
      *