public class RuntimeContextLinkRequestImpl extends LinkRequestImpl
Constructor and Description |
---|
RuntimeContextLinkRequestImpl(CallSiteDescriptor callSiteDescriptor,
boolean callSiteUnstable,
Object[] arguments,
int runtimeContextArgCount)
Creates a new link request.
|
Modifier and Type | Method and Description |
---|---|
LinkRequest |
replaceArguments(CallSiteDescriptor callSiteDescriptor,
Object[] arguments)
Returns a request identical to this one with call site descriptor and arguments replaced with the ones specified.
|
LinkRequest |
withoutRuntimeContext()
Returns a request stripped from runtime context arguments.
|
getArguments, getCallSiteDescriptor, getReceiver, isCallSiteUnstable
public RuntimeContextLinkRequestImpl(CallSiteDescriptor callSiteDescriptor, boolean callSiteUnstable, Object[] arguments, int runtimeContextArgCount)
callSiteDescriptor
- the descriptor for the call site being linkedarguments
- the arguments for the invocationcallSiteUnstable
- true if the call site being linked is considered unstableruntimeContextArgCount
- the number of the leading arguments on the stack that represent the language
runtime specific context arguments.IllegalArgumentException
- if runtimeContextArgCount is less than 1.public LinkRequest withoutRuntimeContext()
LinkRequest
withoutRuntimeContext
in interface LinkRequest
withoutRuntimeContext
in class LinkRequestImpl
public LinkRequest replaceArguments(CallSiteDescriptor callSiteDescriptor, Object[] arguments)
LinkRequest
replaceArguments
in interface LinkRequest
replaceArguments
in class LinkRequestImpl
callSiteDescriptor
- the new call site descriptorarguments
- the new argumentsCopyright © 2016 Attila Szegedi. All rights reserved.