public abstract class CallSite extends Object
Although CallSite is an abstract class, it cannot be directly sub-classed. Instead, it is necessary to sub-class one of the three implementation classes:
CallSites are created with a MethodType and permanently bound to that type. Any changes to the target MethodHandle must be of the identical MethodType or a WrongMethodTypeException will be thrown.
Modifier and Type | Method and Description |
---|---|
abstract MethodHandle |
dynamicInvoker()
Return a MethodHandle equivalent to the invokedynamic instruction on this CallSite.
|
abstract MethodHandle |
getTarget()
Return the target MethodHandle of the CallSite.
|
abstract void |
setTarget(MethodHandle nextTarget)
Set the CallSite's target to be nextTarget.
|
MethodType |
type()
Report the type of CallSite's target MethodHandle.
|
public MethodType type()
public abstract MethodHandle getTarget()
public abstract void setTarget(MethodHandle nextTarget) throws WrongMethodTypeException, NullPointerException
nextTarget
- - the new target value for the CallSiteWrongMethodTypeException
- - if the type of nextTarget differs from that of the CallSite.NullPointerException
- - if nextTarget is null.public abstract MethodHandle dynamicInvoker()
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 1993, 2025 IBM Corp. and others.