APIdia Launch Partner
Top Description Methods
jdk.dynalink.linker

public Interface GuardedInvocationTransformer

Annotations
@FunctionalInterface
Imports
jdk.dynalink.DynamicLinkerFactory

Interface for objects that are used to transform one guarded invocation into another one. Typical usage is for implementing pre-link transformers.
Since
9

Method Summary

Modifier and TypeMethod and Description
public GuardedInvocation

Returns:

either the passed guarded invocation or a different one, with the difference usually determined based on information in the link request and the differing invocation created with the assistance of the linker services. Whether or not null is an accepted return value is dependent on the user of the filter.
filter
(GuardedInvocation
the original guarded invocation.
inv
,
LinkRequest
the link request for which the invocation was generated (usually by some linker).
linkRequest
,
LinkerServices
the linker services that can be used during creation of a new invocation.
linkerServices
)

Given a guarded invocation, return either the same or potentially different guarded invocation.

Method Detail

filterback to summary
public GuardedInvocation filter(GuardedInvocation inv, LinkRequest linkRequest, LinkerServices linkerServices)

Given a guarded invocation, return either the same or potentially different guarded invocation.

Parameters
inv:GuardedInvocation

the original guarded invocation.

linkRequest:LinkRequest

the link request for which the invocation was generated (usually by some linker).

linkerServices:LinkerServices

the linker services that can be used during creation of a new invocation.

Returns:GuardedInvocation

either the passed guarded invocation or a different one, with the difference usually determined based on information in the link request and the differing invocation created with the assistance of the linker services. Whether or not null is an accepted return value is dependent on the user of the filter.

Exceptions
NullPointerException:
is allowed to be thrown by implementations if any of the passed arguments is null.