Class AbstractRelinkableCallSite

All Implemented Interfaces:
RelinkableCallSite
Direct Known Subclasses:
ChainedCallSite, SimpleRelinkableCallSite
public abstract class AbstractRelinkableCallSite
extends MutableCallSite
implements RelinkableCallSite

A basic implementation of the RelinkableCallSite as a MutableCallSite. It carries a CallSiteDescriptor passed in the constructor and provides the correct implementation of the RelinkableCallSite.initialize(MethodHandle) method. Subclasses must provide RelinkableCallSite.relink(GuardedInvocation, MethodHandle) and RelinkableCallSite.resetAndRelink(GuardedInvocation, MethodHandle) methods.

Constructors

Modifier Constructor Description
protected AbstractRelinkableCallSite​(CallSiteDescriptor descriptor)

Creates a new abstract relinkable call site.

Methods

Methods declared in class java.lang.invoke.MutableCallSite

getTarget, setTarget, syncAll

Methods declared in class java.lang.invoke.CallSite

dynamicInvoker, type

Methods declared in class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods declared in interface jdk.dynalink.RelinkableCallSite

getDescriptor, initialize, relink, resetAndRelink

Constructors

AbstractRelinkableCallSite

protected AbstractRelinkableCallSite(CallSiteDescriptor descriptor)

Creates a new abstract relinkable call site.

Parameters:
descriptor - the descriptor for this call site that will be returned from RelinkableCallSite.getDescriptor(). The call site's CallSite.type() will be equal to descriptor's CallSiteDescriptor.getMethodType().
Throws:
NullPointerException - if descriptor is null.

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/jdk.dynalink/jdk/dynalink/support/AbstractRelinkableCallSite.html