nashorn/src/jdk.scripting.nashorn/share/classes/jdk/internal/dynalink/linker/LinkerServices.java
changeset 33333 0bad500ce4e0
parent 33007 03119bfefbbf
child 33337 af3fea63e008
equal deleted inserted replaced
33332:f180be6368d8 33333:0bad500ce4e0
   183     public Comparison compareConversion(Class<?> sourceType, Class<?> targetType1, Class<?> targetType2);
   183     public Comparison compareConversion(Class<?> sourceType, Class<?> targetType1, Class<?> targetType2);
   184 
   184 
   185     /**
   185     /**
   186      * Modifies the method handle so that any parameters that can receive potentially internal language runtime objects
   186      * Modifies the method handle so that any parameters that can receive potentially internal language runtime objects
   187      * will have a filter added on them to prevent them from escaping, potentially by wrapping them.
   187      * will have a filter added on them to prevent them from escaping, potentially by wrapping them.
   188      * It can also potentially add an unwrapping filter to the return value.
   188      * It can also potentially add an unwrapping filter to the return value. Basically transforms the method
       
   189      * handle using the transformer configured by {@link DynamicLinkerFactory#setInternalObjectsFilter(MethodHandleTransformer)}.
   189      * @param target the target method handle
   190      * @param target the target method handle
   190      * @return a method handle with parameters and/or return type potentially filtered for wrapping and unwrapping.
   191      * @return a method handle with parameters and/or return type potentially filtered for wrapping and unwrapping.
   191      */
   192      */
   192     public MethodHandle filterInternalObjects(final MethodHandle target);
   193     public MethodHandle filterInternalObjects(final MethodHandle target);
   193 }
   194 }