Modifier and Type | Field and Description |
---|---|
pack-priv final LinkerServices | |
pack-priv final MissingMemberHandlerFactory |
Access | Constructor and Description |
---|---|
private | LinkerServicesWithMissingMemberHandlerFactory(final LinkerServices linkerServices, final MissingMemberHandlerFactory missingMemberHandlerFactory)
|
Modifier and Type | Method and Description |
---|---|
public MethodHandle | asType(final MethodHandle
target method handle handle, final MethodType the types of source arguments fromType)Implements jdk. Similar to |
public boolean | canConvert(final Class<?>
the source type for the conversion from, final Class<?> the target type for the conversion to)Implements jdk. Returns true if there might exist a conversion between the requested
types (either an automatic JVM conversion, or one provided by any
available |
public ConversionComparator. | compareConversion(final Class<?>
the source type. sourceType, final Class<?> one potential target type targetType1, final Class<?> another potential target type. targetType2)Implements jdk. Determines which of the two type conversions from a source type to the two target types is preferred. |
public MethodHandle | filterInternalObjects(final MethodHandle
the target method handle target)Implements jdk. Modifies the method handle so that any parameters that can receive potentially internal language runtime objects will have a filter added on them to prevent them from escaping, potentially by wrapping them. |
pack-priv static LinkerServices | get(final LinkerServices linkerServices, final MissingMemberHandlerFactory missingMemberHandlerFactory)
|
public GuardedInvocation | getGuardedInvocation(final LinkRequest
a request for linking the invocation linkRequest)Implements jdk. Creates a guarded invocation delegating back to the |
public MethodHandle | getTypeConverter(final Class<?>
the type to convert from sourceType, final Class<?> the type to convert to targetType)Implements jdk. Given a source and target type, returns a method handle that converts between them. |
public <T> T | getWithLookup(final Supplier<T>
the operation to execute in context of the specified lookup. operation, final SecureLookupSupplier secure supplier of the lookup lookupSupplier)Implements jdk. Executes an operation within the context of a particular
|
linkerServices | back to summary |
---|---|
pack-priv final LinkerServices linkerServices |
missingMemberHandlerFactory | back to summary |
---|---|
pack-priv final MissingMemberHandlerFactory missingMemberHandlerFactory |
LinkerServicesWithMissingMemberHandlerFactory | back to summary |
---|---|
private LinkerServicesWithMissingMemberHandlerFactory(final LinkerServices linkerServices, final MissingMemberHandlerFactory missingMemberHandlerFactory) |
asType | back to summary |
---|---|
public MethodHandle asType(final MethodHandle handle, final MethodType fromType) Implements jdk. Doc from jdk. Similar to
|
canConvert | back to summary |
---|---|
public boolean canConvert(final Class<?> from, final Class<?> to) Implements jdk. Doc from jdk. Returns true if there might exist a conversion between the requested
types (either an automatic JVM conversion, or one provided by any
available |
compareConversion | back to summary |
---|---|
public ConversionComparator. Implements jdk. Doc from jdk. Determines which of the two type conversions from a source type to the
two target types is preferred. This is used for dynamic overloaded method
resolution. If the source type is convertible to exactly one target type
with a method invocation conversion, it is chosen, otherwise available
|
filterInternalObjects | back to summary |
---|---|
public MethodHandle filterInternalObjects(final MethodHandle target) Implements jdk. Doc from jdk. Modifies the method handle so that any parameters that can receive
potentially internal language runtime objects will have a filter added on
them to prevent them from escaping, potentially by wrapping them. It can
also potentially add an unwrapping filter to the return value. Basically
transforms the method handle using the transformer configured by
|
get | back to summary |
---|---|
pack-priv static LinkerServices get(final LinkerServices linkerServices, final MissingMemberHandlerFactory missingMemberHandlerFactory) |
getGuardedInvocation | back to summary |
---|---|
public GuardedInvocation getGuardedInvocation(final LinkRequest linkRequest) throws Exception Implements jdk. Doc from jdk. Creates a guarded invocation delegating back to the
|
getTypeConverter | back to summary |
---|---|
public MethodHandle getTypeConverter(final Class<?> sourceType, final Class<?> targetType) Implements jdk. Doc from jdk. Given a source and target type, returns a method handle that converts
between them. Never returns null; in worst case it will return an
identity conversion (that might fail for some values at runtime). You
rarely need to use this method directly and should mostly rely on
|
getWithLookup | back to summary |
---|---|
public <T> T getWithLookup(final Supplier<T> operation, final SecureLookupSupplier lookupSupplier) Implements jdk. Doc from jdk. Executes an operation within the context of a particular
|