public class BottomGuardingDynamicLinker extends Object implements TypeBasedGuardingDynamicLinker
CompositeTypeBasedGuardingDynamicLinker
. Can
be used by other language runtimes if they need it though.Modifier and Type | Field and Description |
---|---|
static BottomGuardingDynamicLinker |
INSTANCE
The sole instance of this stateless linker.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canLinkType(Class<?> type)
Returns true if the linker can link an invocation where the first argument (receiver) is of the specified type.
|
GuardedInvocation |
getGuardedInvocation(LinkRequest linkRequest,
LinkerServices linkerServices)
Creates a guarded invocation appropriate for a particular invocation with the specified arguments at a call site.
|
public static final BottomGuardingDynamicLinker INSTANCE
public boolean canLinkType(Class<?> type)
TypeBasedGuardingDynamicLinker
canLinkType
in interface TypeBasedGuardingDynamicLinker
type
- the type to linkpublic GuardedInvocation getGuardedInvocation(LinkRequest linkRequest, LinkerServices linkerServices)
GuardingDynamicLinker
getGuardedInvocation
in interface GuardingDynamicLinker
linkRequest
- the object describing the request for linking a particular invocationlinkerServices
- linker servicesLinkRequest.withoutRuntimeContext()
and link for that.Copyright © 2017 Attila Szegedi. All rights reserved.