LinkRequest (Java SE 15 & JDK 15) (original) (raw)

All Known Implementing Classes:

[SimpleLinkRequest](support/SimpleLinkRequest.html "class in jdk.dynalink.linker.support")


public interface LinkRequest

Represents a request to link a particular invocation at a particular call site. Instances of these requests will be constructed and passed to allGuardingDynamicLinker objects managed by the DynamicLinker that is trying to link the call site.

Modifier and Type Method Description
Object[] getArguments() Returns the arguments for the invocation being linked.
CallSiteDescriptor getCallSiteDescriptor() Returns the call site descriptor for the call site being linked.
Object getReceiver() Returns the first argument for the invocation being linked; this is typically the receiver object.
boolean isCallSiteUnstable() Returns true if the call site is considered unstable, that is, it has been relinked more times than was specified in DynamicLinkerFactory.setUnstableRelinkThreshold(int).
LinkRequest replaceArguments​(CallSiteDescriptor callSiteDescriptor,Object... arguments) Returns a request identical to this one with call site descriptor and arguments replaced with the ones specified.