nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/Bootstrap.java
equal
deleted
inserted
replaced
187 * java.lang.FunctionalInterface |
187 * java.lang.FunctionalInterface |
188 * @param obj object to be checked |
188 * @param obj object to be checked |
189 * @return true if the obj is an instance of @FunctionalInterface interface |
189 * @return true if the obj is an instance of @FunctionalInterface interface |
190 */ |
190 */ |
191 public static boolean isFunctionalInterfaceObject(final Object obj) { |
191 public static boolean isFunctionalInterfaceObject(final Object obj) { |
192 return !JSType.isPrimitive(obj) && (NashornBottomLinker.getFunctionalInterfaceMethod(obj.getClass()) != null); |
192 return !JSType.isPrimitive(obj) && (NashornBeansLinker.getFunctionalInterfaceMethod(obj.getClass()) != null); |
193 } |
193 } |
194 |
194 |
195 /** |
195 /** |
196 * Create a call site and link it for Nashorn. This version of the method conforms to the invokedynamic bootstrap |
196 * Create a call site and link it for Nashorn. This version of the method conforms to the invokedynamic bootstrap |
197 * method expected signature and is referenced from Nashorn generated bytecode as the bootstrap method for all |
197 * method expected signature and is referenced from Nashorn generated bytecode as the bootstrap method for all |