jdk.internal.dynalink.linker.MethodHandleTransformer Java Examples

The following examples show how to use jdk.internal.dynalink.linker.MethodHandleTransformer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NashornBeansLinker.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
static MethodHandleTransformer createHiddenObjectFilter() {
    return new DefaultInternalObjectFilter(EXPORT_ARGUMENT, MIRROR_ALWAYS ? IMPORT_RESULT : null);
}
 
Example #2
Source File: NashornBeansLinker.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
static MethodHandleTransformer createHiddenObjectFilter() {
    return new DefaultInternalObjectFilter(EXPORT_ARGUMENT, MIRROR_ALWAYS ? IMPORT_RESULT : null);
}
 
Example #3
Source File: NashornBeansLinker.java    From jdk8u_nashorn with GNU General Public License v2.0 4 votes vote down vote up
static MethodHandleTransformer createHiddenObjectFilter() {
    return new DefaultInternalObjectFilter(EXPORT_ARGUMENT, MIRROR_ALWAYS ? IMPORT_RESULT : null);
}
 
Example #4
Source File: NashornBeansLinker.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
static MethodHandleTransformer createHiddenObjectFilter() {
    return new DefaultInternalObjectFilter(EXPORT_ARGUMENT, MIRROR_ALWAYS ? IMPORT_RESULT : null);
}
 
Example #5
Source File: NashornBeansLinker.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
static MethodHandleTransformer createHiddenObjectFilter() {
    return new DefaultInternalObjectFilter(EXPORT_ARGUMENT, MIRROR_ALWAYS ? IMPORT_RESULT : null);
}
 
Example #6
Source File: NashornBeansLinker.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
static MethodHandleTransformer createHiddenObjectFilter() {
    return new DefaultInternalObjectFilter(EXPORT_ARGUMENT, MIRROR_ALWAYS ? IMPORT_RESULT : null);
}
 
Example #7
Source File: LinkerServicesImpl.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a new linker services object.
 *
 * @param typeConverterFactory the type converter factory exposed by the services.
 * @param topLevelLinker the top level linker used by the services.
 * @param internalObjectsFilter a method handle transformer that is supposed to act as the implementation of this
 * services' {@link #filterInternalObjects(java.lang.invoke.MethodHandle)} method.
 */
public LinkerServicesImpl(final TypeConverterFactory typeConverterFactory,
        final GuardingDynamicLinker topLevelLinker, final MethodHandleTransformer internalObjectsFilter) {
    this.typeConverterFactory = typeConverterFactory;
    this.topLevelLinker = topLevelLinker;
    this.internalObjectsFilter = internalObjectsFilter;
}
 
Example #8
Source File: LinkerServicesImpl.java    From jdk8u_nashorn with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a new linker services object.
 *
 * @param typeConverterFactory the type converter factory exposed by the services.
 * @param topLevelLinker the top level linker used by the services.
 * @param internalObjectsFilter a method handle transformer that is supposed to act as the implementation of this
 * services' {@link #filterInternalObjects(java.lang.invoke.MethodHandle)} method.
 */
public LinkerServicesImpl(final TypeConverterFactory typeConverterFactory,
        final GuardingDynamicLinker topLevelLinker, final MethodHandleTransformer internalObjectsFilter) {
    this.typeConverterFactory = typeConverterFactory;
    this.topLevelLinker = topLevelLinker;
    this.internalObjectsFilter = internalObjectsFilter;
}
 
Example #9
Source File: LinkerServicesImpl.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a new linker services object.
 *
 * @param typeConverterFactory the type converter factory exposed by the services.
 * @param topLevelLinker the top level linker used by the services.
 * @param internalObjectsFilter a method handle transformer that is supposed to act as the implementation of this
 * services' {@link #filterInternalObjects(java.lang.invoke.MethodHandle)} method.
 */
public LinkerServicesImpl(final TypeConverterFactory typeConverterFactory,
        final GuardingDynamicLinker topLevelLinker, final MethodHandleTransformer internalObjectsFilter) {
    this.typeConverterFactory = typeConverterFactory;
    this.topLevelLinker = topLevelLinker;
    this.internalObjectsFilter = internalObjectsFilter;
}
 
Example #10
Source File: LinkerServicesImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a new linker services object.
 *
 * @param typeConverterFactory the type converter factory exposed by the services.
 * @param topLevelLinker the top level linker used by the services.
 * @param internalObjectsFilter a method handle transformer that is supposed to act as the implementation of this
 * services' {@link #filterInternalObjects(java.lang.invoke.MethodHandle)} method.
 */
public LinkerServicesImpl(final TypeConverterFactory typeConverterFactory,
        final GuardingDynamicLinker topLevelLinker, final MethodHandleTransformer internalObjectsFilter) {
    this.typeConverterFactory = typeConverterFactory;
    this.topLevelLinker = topLevelLinker;
    this.internalObjectsFilter = internalObjectsFilter;
}
 
Example #11
Source File: LinkerServicesImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a new linker services object.
 *
 * @param typeConverterFactory the type converter factory exposed by the services.
 * @param topLevelLinker the top level linker used by the services.
 * @param internalObjectsFilter a method handle transformer that is supposed to act as the implementation of this
 * services' {@link #filterInternalObjects(java.lang.invoke.MethodHandle)} method.
 */
public LinkerServicesImpl(final TypeConverterFactory typeConverterFactory,
        final GuardingDynamicLinker topLevelLinker, final MethodHandleTransformer internalObjectsFilter) {
    this.typeConverterFactory = typeConverterFactory;
    this.topLevelLinker = topLevelLinker;
    this.internalObjectsFilter = internalObjectsFilter;
}
 
Example #12
Source File: LinkerServicesImpl.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a new linker services object.
 *
 * @param typeConverterFactory the type converter factory exposed by the services.
 * @param topLevelLinker the top level linker used by the services.
 * @param internalObjectsFilter a method handle transformer that is supposed to act as the implementation of this
 * services' {@link #filterInternalObjects(java.lang.invoke.MethodHandle)} method.
 */
public LinkerServicesImpl(final TypeConverterFactory typeConverterFactory,
        final GuardingDynamicLinker topLevelLinker, final MethodHandleTransformer internalObjectsFilter) {
    this.typeConverterFactory = typeConverterFactory;
    this.topLevelLinker = topLevelLinker;
    this.internalObjectsFilter = internalObjectsFilter;
}
 
Example #13
Source File: DynamicLinkerFactory.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets a method handle transformer that is supposed to act as the implementation of this linker factory's linkers'
 * services {@link LinkerServices#filterInternalObjects(java.lang.invoke.MethodHandle)} method.
 * @param internalObjectsFilter a method handle transformer filtering out internal objects, or null.
 */
public void setInternalObjectsFilter(final MethodHandleTransformer internalObjectsFilter) {
    this.internalObjectsFilter = internalObjectsFilter;
}
 
Example #14
Source File: DynamicLinkerFactory.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets a method handle transformer that is supposed to act as the implementation of this linker factory's linkers'
 * services {@link LinkerServices#filterInternalObjects(java.lang.invoke.MethodHandle)} method.
 * @param internalObjectsFilter a method handle transformer filtering out internal objects, or null.
 */
public void setInternalObjectsFilter(final MethodHandleTransformer internalObjectsFilter) {
    this.internalObjectsFilter = internalObjectsFilter;
}
 
Example #15
Source File: DynamicLinkerFactory.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets a method handle transformer that is supposed to act as the implementation of this linker factory's linkers'
 * services {@link LinkerServices#filterInternalObjects(java.lang.invoke.MethodHandle)} method.
 * @param internalObjectsFilter a method handle transformer filtering out internal objects, or null.
 */
public void setInternalObjectsFilter(final MethodHandleTransformer internalObjectsFilter) {
    this.internalObjectsFilter = internalObjectsFilter;
}
 
Example #16
Source File: DynamicLinkerFactory.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets a method handle transformer that is supposed to act as the implementation of this linker factory's linkers'
 * services {@link LinkerServices#filterInternalObjects(java.lang.invoke.MethodHandle)} method.
 * @param internalObjectsFilter a method handle transformer filtering out internal objects, or null.
 */
public void setInternalObjectsFilter(final MethodHandleTransformer internalObjectsFilter) {
    this.internalObjectsFilter = internalObjectsFilter;
}
 
Example #17
Source File: DynamicLinkerFactory.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets a method handle transformer that is supposed to act as the implementation of this linker factory's linkers'
 * services {@link LinkerServices#filterInternalObjects(java.lang.invoke.MethodHandle)} method.
 * @param internalObjectsFilter a method handle transformer filtering out internal objects, or null.
 */
public void setInternalObjectsFilter(final MethodHandleTransformer internalObjectsFilter) {
    this.internalObjectsFilter = internalObjectsFilter;
}
 
Example #18
Source File: DynamicLinkerFactory.java    From jdk8u_nashorn with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets a method handle transformer that is supposed to act as the implementation of this linker factory's linkers'
 * services {@link LinkerServices#filterInternalObjects(java.lang.invoke.MethodHandle)} method.
 * @param internalObjectsFilter a method handle transformer filtering out internal objects, or null.
 */
public void setInternalObjectsFilter(final MethodHandleTransformer internalObjectsFilter) {
    this.internalObjectsFilter = internalObjectsFilter;
}