nashorn/src/jdk.scripting.nashorn/share/classes/jdk/internal/dynalink/linker/MethodTypeConversionStrategy.java
changeset 33333 0bad500ce4e0
parent 27360 a19c14022fa4
child 33339 334cd3ebfa5e
equal deleted inserted replaced
33332:f180be6368d8 33333:0bad500ce4e0
    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