nashorn/src/jdk.scripting.nashorn/share/classes/jdk/internal/dynalink/linker/MethodTypeConversionStrategy.java
equal
deleted
inserted
replaced
85 |
85 |
86 import java.lang.invoke.MethodHandle; |
86 import java.lang.invoke.MethodHandle; |
87 import java.lang.invoke.MethodType; |
87 import java.lang.invoke.MethodType; |
88 |
88 |
89 /** |
89 /** |
90 * Interface for objects representing a strategy for converting a method handle to a new type. |
90 * Interface for objects representing a strategy for converting a method handle |
|
91 * to a new type. |
91 */ |
92 */ |
|
93 @FunctionalInterface |
92 public interface MethodTypeConversionStrategy { |
94 public interface MethodTypeConversionStrategy { |
93 /** |
95 /** |
94 * Converts a method handle to a new type. |
96 * Converts a method handle to a new type. |
95 * @param target target method handle |
97 * @param target target method handle |
96 * @param newType new type |
98 * @param newType new type |