- CallerSensitiveDetector - Class in org.dynalang.dynalink.beans
-
Utility class that determines if a method or constructor is caller sensitive.
- CallerSensitiveDetector() - Constructor for class org.dynalang.dynalink.beans.CallerSensitiveDetector
-
- CallSiteDescriptor - Interface in org.dynalang.dynalink
-
An immutable descriptor of a call site.
- CallSiteDescriptorFactory - Class in org.dynalang.dynalink.support
-
Usable as a default factory for call site descriptor implementations.
- canConvert(Class<?>, Class<?>) - Method in interface org.dynalang.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.
- canConvert(Class<?>, Class<?>) - Method in class org.dynalang.dynalink.support.LinkerServicesImpl
-
- canConvert(Class<?>, Class<?>) - Method in class org.dynalang.dynalink.support.TypeConverterFactory
-
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 interface org.dynalang.dynalink.linker.TypeBasedGuardingDynamicLinker
-
Returns true if the linker can link an invocation where the first argument (receiver) is of the specified type.
- canLinkType(Class<?>) - Method in class org.dynalang.dynalink.support.BottomGuardingDynamicLinker
-
- canLinkType(Class<?>) - Method in class org.dynalang.dynalink.support.CompositeTypeBasedGuardingDynamicLinker
-
- canReferenceDirectly(ClassLoader, ClassLoader) - Static method in class org.dynalang.dynalink.support.Guards
-
Return true if it is safe to strongly reference a class from the referred class loader from a class associated
with the referring class loader without risking a class loader memory leak.
- ChainedCallSite - Class in org.dynalang.dynalink
-
A relinkable call site that maintains a chain of linked method handles.
- ChainedCallSite(CallSiteDescriptor) - Constructor for class org.dynalang.dynalink.ChainedCallSite
-
Creates a new chained call site.
- changeMethodType(MethodType) - Method in interface org.dynalang.dynalink.CallSiteDescriptor
-
Creates a new call site descriptor from this descriptor, which is identical to this, except it changes the method
type.
- changeParameterType(CallSiteDescriptor, int, Class<?>) - Static method in class org.dynalang.dynalink.support.CallSiteDescriptorFactory
-
Returns a new call site descriptor that is identical to the passed one, except that it has a single parameter
type changed in its method type.
- changeReturnType(CallSiteDescriptor, Class<?>) - Static method in class org.dynalang.dynalink.support.CallSiteDescriptorFactory
-
Returns a new call site descriptor that is identical to the passed one, except that it has the return type
changed in its method type.
- ClassMap<T> - Class in org.dynalang.dynalink.support
-
A dual map that can either strongly or weakly reference a given class depending on whether the class is visible from
a class loader or not.
- ClassMap(ClassLoader) - Constructor for class org.dynalang.dynalink.support.ClassMap
-
Creates a new class map.
- compareConversion(Class<?>, Class<?>, Class<?>) - Method in interface org.dynalang.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 org.dynalang.dynalink.linker.LinkerServices
-
Determines which of the two type conversions from a source type to the two target types is preferred.
- compareConversion(Class<?>, Class<?>, Class<?>) - Method in class org.dynalang.dynalink.support.LinkerServicesImpl
-
- compareConversion(Class<?>, Class<?>, Class<?>) - Method in class org.dynalang.dynalink.support.TypeConverterFactory
-
Determines which of the two type conversions from a source type to the two target types is preferred.
- compose(MethodHandle) - Method in class org.dynalang.dynalink.linker.GuardedInvocation
-
Composes the invocation, switchpoint, and the guard into a composite method handle that knows how to fall back.
- compose(MethodHandle, MethodHandle) - Method in class org.dynalang.dynalink.linker.GuardedInvocation
-
Composes the invocation, switchpoint, and the guard into a composite method handle that knows how to fall back.
- CompositeGuardingDynamicLinker - Class in org.dynalang.dynalink.support
-
- CompositeGuardingDynamicLinker(Iterable<? extends GuardingDynamicLinker>) - Constructor for class org.dynalang.dynalink.support.CompositeGuardingDynamicLinker
-
Creates a new composite linker.
- CompositeTypeBasedGuardingDynamicLinker - Class in org.dynalang.dynalink.support
-
A composite type-based guarding dynamic linker.
- CompositeTypeBasedGuardingDynamicLinker(Iterable<? extends TypeBasedGuardingDynamicLinker>) - Constructor for class org.dynalang.dynalink.support.CompositeTypeBasedGuardingDynamicLinker
-
Creates a new composite type-based linker.
- computeValue(Class<?>) - Method in class org.dynalang.dynalink.support.ClassMap
-
Compute the value associated with the given class.
- ConversionComparator - Interface in org.dynalang.dynalink.linker
-
- ConversionComparator.Comparison - Enum in org.dynalang.dynalink.linker
-
Enumeration of possible outcomes of comparing one conversion to another.
- convertToType(Class<?>, Class<?>) - Method in interface org.dynalang.dynalink.linker.GuardingTypeConverterFactory
-
Returns a guarded invocation that receives an Object of the specified source type and returns an Object converted
to the specified target type.
- create(MethodHandles.Lookup, String, MethodType) - Static method in class org.dynalang.dynalink.support.CallSiteDescriptorFactory
-
Creates a new call site descriptor instance.
- createLinker() - Method in class org.dynalang.dynalink.DynamicLinkerFactory
-
Creates a new dynamic linker consisting of all the prioritized, autodiscovered, and fallback linkers.
- get(Class<?>) - Method in class org.dynalang.dynalink.support.ClassMap
-
Returns the value associated with the class
- getArguments() - Method in interface org.dynalang.dynalink.linker.LinkRequest
-
Returns the arguments for the invocation being linked.
- getArguments() - Method in class org.dynalang.dynalink.support.LinkRequestImpl
-
- getCallSiteDescriptor() - Method in interface org.dynalang.dynalink.linker.LinkRequest
-
Returns the call site descriptor for the call site being linked.
- getCallSiteDescriptor() - Method in class org.dynalang.dynalink.support.LinkRequestImpl
-
- getClassGuard(Class<?>) - Static method in class org.dynalang.dynalink.support.Guards
-
Creates a guard method that tests its only argument for being of an exact particular class.
- getDescriptor() - Method in interface org.dynalang.dynalink.RelinkableCallSite
-
Returns the descriptor for this call site.
- getDescriptor() - Method in class org.dynalang.dynalink.support.AbstractRelinkableCallSite
-
- getGuard() - Method in class org.dynalang.dynalink.linker.GuardedInvocation
-
Returns the guard method handle.
- getGuardedInvocation(LinkRequest, LinkerServices) - Method in class org.dynalang.dynalink.beans.BeansLinker
-
- getGuardedInvocation(LinkRequest, LinkerServices) - Method in interface org.dynalang.dynalink.linker.GuardingDynamicLinker
-
Creates a guarded invocation appropriate for a particular invocation with the specified arguments at a call site.
- getGuardedInvocation(LinkRequest) - Method in interface org.dynalang.dynalink.linker.LinkerServices
-
Creates a guarded invocation using the
DynamicLinker
that exposes this linker services interface.
- getGuardedInvocation(LinkRequest, LinkerServices) - Method in class org.dynalang.dynalink.support.BottomGuardingDynamicLinker
-
- getGuardedInvocation(LinkRequest, LinkerServices) - Method in class org.dynalang.dynalink.support.CompositeGuardingDynamicLinker
-
- getGuardedInvocation(LinkRequest, LinkerServices) - Method in class org.dynalang.dynalink.support.CompositeTypeBasedGuardingDynamicLinker
-
- getGuardedInvocation(LinkRequest) - Method in class org.dynalang.dynalink.support.LinkerServicesImpl
-
- getIdentityGuard(Object) - Static method in class org.dynalang.dynalink.support.Guards
-
Creates a guard method that tests its only argument for being referentially identical to another object
- getInstanceMethodNames(Class<?>) - Static method in class org.dynalang.dynalink.beans.BeansLinker
-
Returns a collection of names of all instance methods of a class.
- getInstanceOfGuard(Class<?>) - Static method in class org.dynalang.dynalink.support.Guards
-
Creates a guard method that tests its only argument for being an instance of a particular class.
- getInvocation() - Method in class org.dynalang.dynalink.linker.GuardedInvocation
-
Returns the invocation method handle.
- getLinkedCallSiteLocation() - Static method in class org.dynalang.dynalink.DynamicLinker
-
Returns a stack trace element describing the location of the call site currently being linked on the current
thread.
- getLinkerForClass(Class<?>) - Static method in class org.dynalang.dynalink.beans.BeansLinker
-
Returns a bean linker for a particular single class.
- getLinkerServices() - Method in class org.dynalang.dynalink.DynamicLinker
-
Returns the object representing the lower level linker services of this class that are normally exposed to
individual language-specific linkers.
- getLookup() - Method in interface org.dynalang.dynalink.CallSiteDescriptor
-
Returns the lookup passed to the bootstrap method.
- getLookup() - Method in class org.dynalang.dynalink.support.AbstractCallSiteDescriptor
-
- getMaxChainLength() - Method in class org.dynalang.dynalink.ChainedCallSite
-
The maximum number of method handles in the chain.
- getMethodType() - Method in interface org.dynalang.dynalink.CallSiteDescriptor
-
The type of the method at the call site.
- getMostSpecificCommonType(Class<?>, Class<?>) - Static method in class org.dynalang.dynalink.support.TypeUtilities
-
Given two types represented by c1 and c2, returns a type that is their most specific common superclass or
superinterface.
- getName() - Method in interface org.dynalang.dynalink.CallSiteDescriptor
-
Returns the name of the method at the call site.
- getName() - Method in class org.dynalang.dynalink.support.AbstractCallSiteDescriptor
-
- getNameToken(int) - Method in interface org.dynalang.dynalink.CallSiteDescriptor
-
Returns the ith token in the method name at the call site.
- getNameTokenCount() - Method in interface org.dynalang.dynalink.CallSiteDescriptor
-
Returns the number of tokens in the name of the method at the call site.
- getPrimitiveType(Class<?>) - Static method in class org.dynalang.dynalink.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 org.dynalang.dynalink.support.TypeUtilities
-
Given a name of a primitive type (except "void"), returns the class representing it.
- getReadableInstancePropertyNames(Class<?>) - Static method in class org.dynalang.dynalink.beans.BeansLinker
-
Returns a collection of names of all readable instance properties of a class.
- getReadableStaticPropertyNames(Class<?>) - Static method in class org.dynalang.dynalink.beans.BeansLinker
-
Returns a collection of names of all readable static properties of a class.
- getReceiver() - Method in interface org.dynalang.dynalink.linker.LinkRequest
-
Returns the 0th argument for the invocation being linked; this is typically the receiver object.
- getReceiver() - Method in class org.dynalang.dynalink.support.LinkRequestImpl
-
- getRelinkedCallSiteLocation() - Static method in class org.dynalang.dynalink.DynamicLinker
-
- getRepresentedClass() - Method in class org.dynalang.dynalink.beans.StaticClass
-
Returns the represented Java class.
- getStaticMethodNames(Class<?>) - Static method in class org.dynalang.dynalink.beans.BeansLinker
-
Returns a collection of names of all static methods of a class.
- getSwitchPoint() - Method in class org.dynalang.dynalink.linker.GuardedInvocation
-
Returns the switch point that can be used to invalidate the invocation handle.
- getTypeConverter(Class<?>, Class<?>) - Method in interface org.dynalang.dynalink.linker.LinkerServices
-
Given a source and target type, returns a method handle that converts between them.
- getTypeConverter(Class<?>, Class<?>) - Method in class org.dynalang.dynalink.support.LinkerServicesImpl
-
- getTypeConverter(Class<?>, Class<?>) - Method in class org.dynalang.dynalink.support.TypeConverterFactory
-
Given a source and target type, returns a method handle that converts between them.
- getWrapperType(Class<?>) - Static method in class org.dynalang.dynalink.support.TypeUtilities
-
When passed a class representing a primitive type, returns the class representing the corresponding
wrapper type.
- getWritableInstancePropertyNames(Class<?>) - Static method in class org.dynalang.dynalink.beans.BeansLinker
-
Returns a collection of names of all writable instance properties of a class.
- getWritableStaticPropertyNames(Class<?>) - Static method in class org.dynalang.dynalink.beans.BeansLinker
-
Returns a collection of names of all writable static properties of a class.
- GuardedInvocation - Class in org.dynalang.dynalink.linker
-
Represents a conditionally valid method handle.
- GuardedInvocation(MethodHandle, MethodHandle) - Constructor for class org.dynalang.dynalink.linker.GuardedInvocation
-
Creates a new guarded invocation.
- GuardedInvocation(MethodHandle, MethodHandle, SwitchPoint) - Constructor for class org.dynalang.dynalink.linker.GuardedInvocation
-
Creates a new guarded invocation.
- GuardedInvocation(MethodHandle, SwitchPoint, MethodHandle) - Constructor for class org.dynalang.dynalink.linker.GuardedInvocation
-
Creates a new guarded invocation.
- GuardingDynamicLinker - Interface in org.dynalang.dynalink.linker
-
The base interface for language-specific dynamic linkers.
- GuardingTypeConverterFactory - Interface in org.dynalang.dynalink.linker
-
Optional interface that can be implemented by
GuardingDynamicLinker
implementations to provide
language-runtime specific implicit type conversion capabilities.
- Guards - Class in org.dynalang.dynalink.support
-
Utility methods for creating typical guards.
- initialize(MethodHandle) - Method in interface org.dynalang.dynalink.RelinkableCallSite
-
Initializes the relinkable call site by setting a relink-and-invoke method handle.
- initialize(MethodHandle) - Method in class org.dynalang.dynalink.support.AbstractRelinkableCallSite
-
- insertParameterTypes(CallSiteDescriptor, int, Class<?>...) - Static method in class org.dynalang.dynalink.support.CallSiteDescriptorFactory
-
Returns a new call site descriptor that is identical to the passed one, except that it has additional parameter
types inserted into its method type.
- insertParameterTypes(CallSiteDescriptor, int, List<Class<?>>) - Static method in class org.dynalang.dynalink.support.CallSiteDescriptorFactory
-
Returns a new call site descriptor that is identical to the passed one, except that it has additional parameter
types inserted into its method type.
- INSTANCE - Static variable in class org.dynalang.dynalink.support.BottomGuardingDynamicLinker
-
The sole instance of this stateless linker.
- isArray(int, MethodType) - Static method in class org.dynalang.dynalink.support.Guards
-
Creates a method handle that returns true if the argument in the specified position is a Java array.
- isCallSiteUnstable() - Method in interface org.dynalang.dynalink.linker.LinkRequest
-
- isCallSiteUnstable() - Method in class org.dynalang.dynalink.support.LinkRequestImpl
-
- isInstance(Class<?>, MethodType) - Static method in class org.dynalang.dynalink.support.Guards
-
Creates a method handle with arguments of a specified type, but with boolean return value.
- isInstance(Class<?>, int, MethodType) - Static method in class org.dynalang.dynalink.support.Guards
-
Creates a method handle with arguments of a specified type, but with boolean return value.
- isMethodInvocationConvertible(Class<?>, Class<?>) - Static method in class org.dynalang.dynalink.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 org.dynalang.dynalink.support.Guards
-
Returns a guard that tests whether the first argument is not null.
- isNull() - Static method in class org.dynalang.dynalink.support.Guards
-
Returns a guard that tests whether the first argument is null.
- isOfClass(Class<?>, MethodType) - Static method in class org.dynalang.dynalink.support.Guards
-
Creates a guard method handle with arguments of a specified type, but with boolean return value.
- isPotentiallyConvertible(Class<?>, Class<?>) - Static method in class org.dynalang.dynalink.support.TypeUtilities
-
Determines whether one type can be potentially converted to another type at runtime.
- isSubtype(Class<?>, Class<?>) - Static method in class org.dynalang.dynalink.support.TypeUtilities
-
Determines whether one type is a subtype of another type, as per JLS 4.10 "Subtyping".