- CallSiteDescriptor - Class in jdk.dynalink
-
Call site descriptors contain all the information necessary for linking a
call site.
- CallSiteDescriptor(MethodHandles.Lookup, Operation, MethodType) - Constructor for class jdk.dynalink.CallSiteDescriptor
-
Creates a new call site descriptor.
- canConvert(Class<?>, Class<?>) - Method in interface jdk.dynalink.linker.LinkerServices
-
Returns true if there might exist a conversion between the requested
types (either an automatic JVM conversion, or one provided by any
available
GuardingTypeConverterFactory
), or false if there
definitely does not exist a conversion between the requested types.
- canLinkType(Class<?>) - Method in class jdk.dynalink.linker.support.CompositeTypeBasedGuardingDynamicLinker
-
- canLinkType(Class<?>) - Method in interface jdk.dynalink.linker.TypeBasedGuardingDynamicLinker
-
Returns true if the linker can link an invocation where the first argument (receiver) is of the specified type.
- ChainedCallSite - Class in jdk.dynalink.support
-
A relinkable call site that implements a polymorphic inline caching strategy.
- ChainedCallSite(CallSiteDescriptor) - Constructor for class jdk.dynalink.support.ChainedCallSite
-
Creates a new chained call site.
- changeMethodType(MethodType) - Method in class jdk.dynalink.CallSiteDescriptor
-
Creates a new call site descriptor from this descriptor, which is
identical to this, except it changes the method type.
- changeMethodTypeInternal(MethodType) - Method in class jdk.dynalink.CallSiteDescriptor
-
Creates a new call site descriptor from this descriptor, which is
identical to this, except it changes the method type.
- compareConversion(Class<?>, Class<?>, Class<?>) - Method in interface jdk.dynalink.linker.ConversionComparator
-
Determines which of the two target types is the preferred conversion
target from a source type.
- compareConversion(Class<?>, Class<?>, Class<?>) - Method in interface jdk.dynalink.linker.LinkerServices
-
Determines which of the two type conversions from a source type to the
two target types is preferred.
- compose(MethodHandle) - Method in class jdk.dynalink.linker.GuardedInvocation
-
Composes the invocation, guard, switch points, and the exception into a
composite method handle that knows how to fall back when the guard fails
or the invocation is invalidated.
- compose(MethodHandle, MethodHandle, MethodHandle) - Method in class jdk.dynalink.linker.GuardedInvocation
-
Composes the invocation, guard, switch points, and the exception into a
composite method handle that knows how to fall back when the guard fails
or the invocation is invalidated.
- CompositeGuardingDynamicLinker - Class in jdk.dynalink.linker.support
-
- CompositeGuardingDynamicLinker(Iterable<? extends GuardingDynamicLinker>) - Constructor for class jdk.dynalink.linker.support.CompositeGuardingDynamicLinker
-
Creates a new composite linker.
- CompositeOperation - Class in jdk.dynalink
-
Describes an operation that is composed of at least two other operations.
- CompositeOperation(Operation...) - Constructor for class jdk.dynalink.CompositeOperation
-
Constructs a new composite operation.
- CompositeTypeBasedGuardingDynamicLinker - Class in jdk.dynalink.linker.support
-
A composite type-based guarding dynamic linker.
- CompositeTypeBasedGuardingDynamicLinker(Iterable<? extends TypeBasedGuardingDynamicLinker>) - Constructor for class jdk.dynalink.linker.support.CompositeTypeBasedGuardingDynamicLinker
-
Creates a new composite type-based linker.
- contains(Operation) - Method in class jdk.dynalink.CompositeOperation
-
Returns true if this composite operation contains an operation equal to
the specified operation.
- contains(Operation, Operation) - Static method in class jdk.dynalink.CompositeOperation
-
Returns true if the specified potentially composite operation is a
CompositeOperation
and contains an operation equal to the
specified operation.
- ConversionComparator - Interface in jdk.dynalink.linker
-
- ConversionComparator.Comparison - Enum in jdk.dynalink.linker
-
Enumeration of possible outcomes of comparing one conversion to another.
- convertToType(Class<?>, Class<?>, Supplier<MethodHandles.Lookup>) - Method in interface jdk.dynalink.linker.GuardingTypeConverterFactory
-
Returns a guarded type conversion that receives a value of the specified
source type and returns a value converted to the specified target type.
- createLinker() - Method in class jdk.dynalink.DynamicLinkerFactory
-
Creates a new dynamic linker based on the current configuration.
- createMissingMemberHandler(LinkRequest, LinkerServices) - Method in interface jdk.dynalink.beans.MissingMemberHandlerFactory
-
Returns a method handle suitable for implementing missing member behavior
for a particular link request.
- GET_LOOKUP_PERMISSION_NAME - Static variable in class jdk.dynalink.SecureLookupSupplier
-
- getArguments() - Method in interface jdk.dynalink.linker.LinkRequest
-
Returns the arguments for the invocation being linked.
- getArguments() - Method in class jdk.dynalink.linker.support.SimpleLinkRequest
-
- getAutoLoadingErrors() - Method in class jdk.dynalink.DynamicLinkerFactory
-
- getBaseOperation() - Method in class jdk.dynalink.NamedOperation
-
Returns the base operation of this named operation.
- getBaseOperation(Operation) - Static method in class jdk.dynalink.NamedOperation
-
- getCallSiteDescriptor() - Method in interface jdk.dynalink.linker.LinkRequest
-
Returns the call site descriptor for the call site being linked.
- getCallSiteDescriptor() - Method in class jdk.dynalink.linker.support.SimpleLinkRequest
-
- getClassGuard(Class<?>) - Static method in class jdk.dynalink.linker.support.Guards
-
Creates a guard method that tests its only argument for being of an exact particular class.
- getConstructorMethod(Class<?>, String) - Static method in class jdk.dynalink.beans.BeansLinker
-
Return the dynamic method of constructor of the given class and the given
signature.
- getDescriptor() - Method in interface jdk.dynalink.RelinkableCallSite
-
Returns the descriptor for this call site.
- getDescriptor() - Method in class jdk.dynalink.support.AbstractRelinkableCallSite
-
- getException() - Method in class jdk.dynalink.linker.GuardedInvocation
-
Returns the exception type that if thrown by the invocation should
invalidate the linkage of this guarded invocation.
- getGuard() - Method in class jdk.dynalink.linker.GuardedInvocation
-
Returns the guard method handle.
- getGuardedInvocation(LinkRequest) - Method in interface jdk.dynalink.linker.LinkerServices
-
Creates a guarded invocation delegating back to the
DynamicLinker
that exposes this linker services object.
- getGuardedInvocation(LinkRequest, LinkerServices) - Method in class jdk.dynalink.beans.BeansLinker
-
- getGuardedInvocation(LinkRequest, LinkerServices) - Method in interface jdk.dynalink.linker.GuardingDynamicLinker
-
Creates a guarded invocation appropriate for a particular invocation with
the specified arguments at a call site.
- getGuardedInvocation(LinkRequest, LinkerServices) - Method in class jdk.dynalink.linker.support.CompositeGuardingDynamicLinker
-
Delegates the call to its component linkers.
- getGuardedInvocation(LinkRequest, LinkerServices) - Method in class jdk.dynalink.linker.support.CompositeTypeBasedGuardingDynamicLinker
-
- getIdentityGuard(Object) - Static method in class jdk.dynalink.linker.support.Guards
-
Creates a guard method that tests its only argument for being referentially identical to another object
- getInstanceMethodNames(Class<?>) - Static method in class jdk.dynalink.beans.BeansLinker
-
Returns a set of names of all instance methods of a class.
- getInstanceOfGuard(Class<?>) - Static method in class jdk.dynalink.linker.support.Guards
-
Creates a guard method that tests its only argument for being an instance of a particular class.
- getInvocation() - Method in class jdk.dynalink.linker.GuardedInvocation
-
Returns the invocation method handle.
- getLinkedCallSiteLocation() - Static method in class jdk.dynalink.DynamicLinker
-
Returns a stack trace element describing the location of the
invokedynamic
call site currently being linked on the current
thread.
- getLinkerForClass(Class<?>) - Method in class jdk.dynalink.beans.BeansLinker
-
Returns a bean linker for a particular single class.
- getLinkerServices() - Method in class jdk.dynalink.DynamicLinker
-
Returns the object representing the linker services of this class that
are normally exposed to individual
language-specific linkers
.
- getLookup() - Method in class jdk.dynalink.SecureLookupSupplier
-
Returns the lookup secured by this SecureLookupSupplier
.
- getLookupPrivileged() - Method in class jdk.dynalink.SecureLookupSupplier
-
- getMaxChainLength() - Method in class jdk.dynalink.support.ChainedCallSite
-
The maximum number of method handles in the chain.
- getMethodType() - Method in class jdk.dynalink.CallSiteDescriptor
-
The type of the method at the call site.
- getName() - Method in class jdk.dynalink.NamedOperation
-
Returns the name of this named operation.
- getName(Operation) - Static method in class jdk.dynalink.NamedOperation
-
- getOperation() - Method in class jdk.dynalink.CallSiteDescriptor
-
Returns the operation at the call site.
- getOperation(int) - Method in class jdk.dynalink.CompositeOperation
-
Returns the i-th component operation in this composite operation.
- getOperationCount() - Method in class jdk.dynalink.CompositeOperation
-
Returns the number of component operations in this composite operation.
- getOperations() - Method in class jdk.dynalink.CompositeOperation
-
Returns the component operations in this composite operation.
- getOperations(Operation) - Static method in class jdk.dynalink.CompositeOperation
-
Returns the components of the passed operation if it is a composite
operation, otherwise returns an array containing the operation itself.
- getPrimitiveType(Class<?>) - Static method in class jdk.dynalink.linker.support.TypeUtilities
-
When passed a class representing a wrapper for a primitive type, returns
the class representing the corresponding primitive type.
- getPrimitiveTypeByName(String) - Static method in class jdk.dynalink.linker.support.TypeUtilities
-
Given a name of a primitive type returns the class representing it.
- getReadableInstancePropertyNames(Class<?>) - Static method in class jdk.dynalink.beans.BeansLinker
-
Returns a set of names of all readable instance properties of a class.
- getReadableStaticPropertyNames(Class<?>) - Static method in class jdk.dynalink.beans.BeansLinker
-
Returns a set of names of all readable static properties of a class.
- getReceiver() - Method in interface jdk.dynalink.linker.LinkRequest
-
Returns the first argument for the invocation being linked; this is
typically the receiver object.
- getReceiver() - Method in class jdk.dynalink.linker.support.SimpleLinkRequest
-
- getRepresentedClass() - Method in class jdk.dynalink.beans.StaticClass
-
Returns the represented Java class.
- getStaticMethodNames(Class<?>) - Static method in class jdk.dynalink.beans.BeansLinker
-
Returns a set of names of all static methods of a class.
- getSwitchPoints() - Method in class jdk.dynalink.linker.GuardedInvocation
-
Returns the switch points that can be used to invalidate the linkage of
this invocation handle.
- getTypeConverter(Class<?>, Class<?>) - Method in interface jdk.dynalink.linker.LinkerServices
-
Given a source and target type, returns a method handle that converts
between them.
- getWithLookup(Supplier<T>, SecureLookupSupplier) - Method in interface jdk.dynalink.linker.LinkerServices
-
Executes an operation within the context of a particular
MethodHandles.Lookup
lookup object.
- getWrapperType(Class<?>) - Static method in class jdk.dynalink.linker.support.TypeUtilities
-
When passed a class representing a primitive type, returns the class representing the corresponding
wrapper type.
- getWritableInstancePropertyNames(Class<?>) - Static method in class jdk.dynalink.beans.BeansLinker
-
Returns a set of names of all writable instance properties of a class.
- getWritableStaticPropertyNames(Class<?>) - Static method in class jdk.dynalink.beans.BeansLinker
-
Returns a set of names of all writable static properties of a class.
- GuardedInvocation - Class in jdk.dynalink.linker
-
Represents a conditionally valid method handle.
- GuardedInvocation(MethodHandle) - Constructor for class jdk.dynalink.linker.GuardedInvocation
-
Creates a new unconditional guarded invocation.
- GuardedInvocation(MethodHandle, MethodHandle) - Constructor for class jdk.dynalink.linker.GuardedInvocation
-
Creates a new guarded invocation, with a guard method handle.
- GuardedInvocation(MethodHandle, MethodHandle, SwitchPoint) - Constructor for class jdk.dynalink.linker.GuardedInvocation
-
Creates a new guarded invocation, with both a guard method handle and a
switch point that can be used to invalidate it.
- GuardedInvocation(MethodHandle, MethodHandle, SwitchPoint[], Class<? extends Throwable>) - Constructor for class jdk.dynalink.linker.GuardedInvocation
-
Creates a new guarded invocation, with a guard method handle, any number
of switch points that can be used to invalidate it, and an exception that
if thrown when invoked also invalidates it.
- GuardedInvocation(MethodHandle, MethodHandle, SwitchPoint, Class<? extends Throwable>) - Constructor for class jdk.dynalink.linker.GuardedInvocation
-
Creates a new guarded invocation, with a guard method handle, a
switch point that can be used to invalidate it, and an exception that if
thrown when invoked also invalidates it.
- GuardedInvocation(MethodHandle, SwitchPoint) - Constructor for class jdk.dynalink.linker.GuardedInvocation
-
Creates a new guarded invocation that can be invalidated by a switch
point.
- GuardedInvocationTransformer - Interface in jdk.dynalink.linker
-
Interface for objects that are used to transform one guarded invocation into
another one.
- GuardingDynamicLinker - Interface in jdk.dynalink.linker
-
The base interface for language-specific dynamic linkers.
- GuardingDynamicLinkerExporter - Class in jdk.dynalink.linker
-
A class acting as a supplier of guarding dynamic linkers that can be
automatically loaded by other language runtimes.
- GuardingDynamicLinkerExporter() - Constructor for class jdk.dynalink.linker.GuardingDynamicLinkerExporter
-
Creates a new linker exporter.
- GuardingTypeConverterFactory - Interface in jdk.dynalink.linker
-
Optional interface that can be implemented by
GuardingDynamicLinker
implementations to provide language-specific type conversion capabilities.
- Guards - Class in jdk.dynalink.linker.support
-
- initialize(MethodHandle) - Method in interface jdk.dynalink.RelinkableCallSite
-
Invoked by dynamic linker to initialize the relinkable call site by
setting a relink-and-invoke method handle.
- initialize(MethodHandle) - Method in class jdk.dynalink.support.AbstractRelinkableCallSite
-
- isArray(int, MethodType) - Static method in class jdk.dynalink.linker.support.Guards
-
Creates a method handle that returns true if the argument in the specified position is a Java array.
- isCallSiteUnstable() - Method in interface jdk.dynalink.linker.LinkRequest
-
- isCallSiteUnstable() - Method in class jdk.dynalink.linker.support.SimpleLinkRequest
-
- isConvertibleWithoutLoss(Class<?>, Class<?>) - Static method in class jdk.dynalink.linker.support.TypeUtilities
-
Determines whether a type can be converted to another without losing any
precision.
- isDynamicConstructor(Object) - Static method in class jdk.dynalink.beans.BeansLinker
-
- isDynamicMethod(Object) - Static method in class jdk.dynalink.beans.BeansLinker
-
- isInstance(Class<?>, int, MethodType) - Static method in class jdk.dynalink.linker.support.Guards
-
Creates a method handle with arguments of a specified type, but with boolean return value.
- isInstance(Class<?>, MethodType) - Static method in class jdk.dynalink.linker.support.Guards
-
Creates a method handle with arguments of a specified type, but with boolean return value.
- isMethodInvocationConvertible(Class<?>, Class<?>) - Static method in class jdk.dynalink.linker.support.TypeUtilities
-
Determines whether one type can be converted to another type using a method invocation conversion, as per JLS 5.3
"Method Invocation Conversion".
- isNotNull() - Static method in class jdk.dynalink.linker.support.Guards
-
Returns a guard that tests whether the first argument is not null.
- isNull() - Static method in class jdk.dynalink.linker.support.Guards
-
Returns a guard that tests whether the first argument is null.
- isOfClass(Class<?>, MethodType) - Static method in class jdk.dynalink.linker.support.Guards
-
Creates a guard method handle with arguments of a specified type, but with boolean return value.
- isSubtype(Class<?>, Class<?>) - Static method in class jdk.dynalink.linker.support.TypeUtilities
-
Determines whether one type is a subtype of another type, as per JLS
4.10 "Subtyping".
- isWrapperType(Class<?>) - Static method in class jdk.dynalink.linker.support.TypeUtilities
-
Returns true if the passed type is a wrapper for a primitive type.
- SecureLookupSupplier - Class in jdk.dynalink
-
Provides security-checked access to a MethodHandles.Lookup
object.
- SecureLookupSupplier(MethodHandles.Lookup) - Constructor for class jdk.dynalink.SecureLookupSupplier
-
Creates a new secure lookup supplier, securing the passed lookup.
- setAutoConversionStrategy(MethodTypeConversionStrategy) - Method in class jdk.dynalink.DynamicLinkerFactory
-
Sets an object representing the conversion strategy for automatic type
conversions.
- setClassLoader(ClassLoader) - Method in class jdk.dynalink.DynamicLinkerFactory
-
Sets the class loader for automatic discovery of available guarding
dynamic linkers.
- setFallbackLinkers(List<? extends GuardingDynamicLinker>) - Method in class jdk.dynalink.DynamicLinkerFactory
-
Sets the fallback guarding dynamic linkers.
- setFallbackLinkers(GuardingDynamicLinker...) - Method in class jdk.dynalink.DynamicLinkerFactory
-
Sets the fallback guarding dynamic linkers.
- setInternalObjectsFilter(MethodHandleTransformer) - Method in class jdk.dynalink.DynamicLinkerFactory
-
- setPrelinkTransformer(GuardedInvocationTransformer) - Method in class jdk.dynalink.DynamicLinkerFactory
-
Set the pre-link transformer.
- setPrioritizedLinker(GuardingDynamicLinker) - Method in class jdk.dynalink.DynamicLinkerFactory
-
Sets a single prioritized linker.
- setPrioritizedLinkers(List<? extends GuardingDynamicLinker>) - Method in class jdk.dynalink.DynamicLinkerFactory
-
Sets the prioritized guarding dynamic linkers.
- setPrioritizedLinkers(GuardingDynamicLinker...) - Method in class jdk.dynalink.DynamicLinkerFactory
-
Sets the prioritized guarding dynamic linkers.
- setSyncOnRelink(boolean) - Method in class jdk.dynalink.DynamicLinkerFactory
-
- setUnstableRelinkThreshold(int) - Method in class jdk.dynalink.DynamicLinkerFactory
-
Sets the unstable relink threshold; the number of times a call site is
relinked after which it will be considered unstable, and subsequent link
requests for it will indicate this.
- SimpleLinkRequest - Class in jdk.dynalink.linker.support
-
- SimpleLinkRequest(CallSiteDescriptor, boolean, Object...) - Constructor for class jdk.dynalink.linker.support.SimpleLinkRequest
-
Creates a new link request.
- SimpleRelinkableCallSite - Class in jdk.dynalink.support
-
A relinkable call site that implements monomorphic inline caching strategy,
only being linked to a single
GuardedInvocation
.
- SimpleRelinkableCallSite(CallSiteDescriptor) - Constructor for class jdk.dynalink.support.SimpleRelinkableCallSite
-
Creates a new call site with monomorphic inline caching strategy.
- StandardOperation - Enum in jdk.dynalink
-
Defines the standard dynamic operations.
- StaticClass - Class in jdk.dynalink.beans
-
Object that allows access to the static members of a class (its static
methods, properties, and fields), as well as construction of instances using
StandardOperation.NEW
operation.