Uses of Class
java.lang.invoke.CallSite
Packages that use CallSite
Package
Description
Classes and interfaces to represent nominal descriptors for run-time
entities such as classes or method handles, and classfile entities such as
constant pool entries or
invokedynamic call sites.The
java.lang.invoke package provides low-level primitives for interacting
with the Java Virtual Machine.The
java.lang.runtime package provides low-level runtime support
for the Java language.Contains classes that make using Dynalink more convenient by providing
basic implementations of some classes as well as various utilities.
-
Uses of CallSite in java.lang.constant
Methods in java.lang.constant that return CallSiteModifier and TypeMethodDescriptionDynamicCallSiteDesc.resolveCallSiteDesc(MethodHandles.Lookup lookup) Reflectively invokes the bootstrap method with the specified arguments, and return the resultingCallSite -
Uses of CallSite in java.lang.invoke
Subclasses of CallSite in java.lang.invokeModifier and TypeClassDescriptionclassAConstantCallSiteis aCallSitewhose target is permanent, and can never be changed.classAMutableCallSiteis aCallSitewhose target variable behaves like an ordinary field.classAVolatileCallSiteis aCallSitewhose target acts like a volatile variable.Methods in java.lang.invoke that return CallSiteModifier and TypeMethodDescriptionstatic CallSiteLambdaMetafactory.altMetafactory(MethodHandles.Lookup caller, String interfaceMethodName, MethodType factoryType, Object... args) Facilitates the creation of simple "function objects" that implement one or more interfaces by delegation to a providedMethodHandle, after appropriate type adaptation and partial evaluation of arguments.static CallSiteStringConcatFactory.makeConcat(MethodHandles.Lookup lookup, String name, MethodType concatType) Facilitates the creation of optimized String concatenation methods, that can be used to efficiently concatenate a known number of arguments of known types, possibly after type adaptation and partial evaluation of arguments.static CallSiteStringConcatFactory.makeConcatWithConstants(MethodHandles.Lookup lookup, String name, MethodType concatType, String recipe, Object... constants) Facilitates the creation of optimized String concatenation methods, that can be used to efficiently concatenate a known number of arguments of known types, possibly after type adaptation and partial evaluation of arguments.static CallSiteLambdaMetafactory.metafactory(MethodHandles.Lookup caller, String interfaceMethodName, MethodType factoryType, MethodType interfaceMethodType, MethodHandle implementation, MethodType dynamicMethodType) Facilitates the creation of simple "function objects" that implement one or more interfaces by delegation to a providedMethodHandle, after appropriate type adaptation and partial evaluation of arguments. -
Uses of CallSite in java.lang.runtime
Methods in java.lang.runtime that return CallSiteModifier and TypeMethodDescriptionstatic CallSiteSwitchBootstraps.enumSwitch(MethodHandles.Lookup lookup, String invocationName, MethodType invocationType, Object... labels) Bootstrap method for linking aninvokedynamiccall site that implements aswitchon a target of an enum type.static CallSiteTemplateRuntime.newLargeStringTemplate(MethodHandles.Lookup lookup, String name, MethodType type) String template bootstrap method for creating large string templates, i.e., when the number of value slots exceedsStringConcatFactory.MAX_INDY_CONCAT_ARG_SLOTSPREVIEW.static CallSiteTemplateRuntime.newStringTemplate(MethodHandles.Lookup lookup, String name, MethodType type, String... fragments) String template bootstrap method for creating string templates.static CallSiteTemplateRuntime.processStringTemplate(MethodHandles.Lookup lookup, String name, MethodType type, MethodHandle processorGetter, String... fragments) String template bootstrap method for static final processors.static CallSiteSwitchBootstraps.typeSwitch(MethodHandles.Lookup lookup, String invocationName, MethodType invocationType, Object... labels) Bootstrap method for linking aninvokedynamiccall site that implements aswitchon a target of a reference type. -
Uses of CallSite in jdk.dynalink.support
Subclasses of CallSite in jdk.dynalink.supportModifier and TypeClassDescriptionclassA basic implementation of theRelinkableCallSiteas aMutableCallSite.classA relinkable call site that implements a polymorphic inline caching strategy.classA relinkable call site that implements monomorphic inline caching strategy, only being linked to a singleGuardedInvocationat any given time.