Top Description Fields Constructors Methods
tools.jackson.databind.util.internal

public abstract Class UnreflectHandleSupplier

extends Object
implements Supplier<MethodHandle>
Class Inheritance
All Implemented Interfaces
java.util.function.Supplier
Known Direct Subclasses
tools.jackson.databind.deser.impl.MethodProperty.SetterHolder, tools.jackson.databind.introspect.AnnotatedConstructor.InvokerHolder, tools.jackson.databind.introspect.AnnotatedMethod.MethodHolder, tools.jackson.databind.ser.BeanPropertyWriter.GetterHolder
Imports
java.lang.invoke.MethodHandle, .MethodType, java.util.function.Supplier, tools.jackson.databind.util.ClassUtil

Lazy memoized holder for MethodHandles. Defers binding of the method handle until after access checks are suppressed (which happens in a virtual method call after construction) and avoids serialization of MethodHandle.

Field Summary

Modifier and TypeField and Description
private final MethodType
private Supplier<MethodHandle>
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public MethodHandle
get()

Implements java.util.function.Supplier.get.

Gets a result.

pack-priv synchronized MethodHandle
protected MethodHandle
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

protected abstract MethodHandle
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

asTypeback to summary
private final MethodType asType
delegateback to summary
private Supplier<MethodHandle> delegate
initializedback to summary
private boolean initialized

Constructor Detail

UnreflectHandleSupplierback to summary
public UnreflectHandleSupplier(MethodType asType)

Method Detail

getback to summary
public MethodHandle get()

Implements java.util.function.Supplier.get.

Doc from java.util.function.Supplier.get.

Gets a result.

Annotations
@Override
initializeback to summary
pack-priv synchronized MethodHandle initialize()
postprocessback to summary
protected MethodHandle postprocess(MethodHandle mh)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
unreflectback to summary
protected abstract MethodHandle unreflect() throws IllegalAccessException