Class UnreflectHandleSupplier
java.lang.Object
tools.jackson.databind.util.internal.UnreflectHandleSupplier
- All Implemented Interfaces:
Supplier<MethodHandle>
- Direct Known Subclasses:
AnnotatedConstructor.InvokerHolder, AnnotatedMethod.MethodHolder, BeanPropertyWriter.GetterHolder, MethodProperty.SetterHolder
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
FieldsModifier and TypeFieldDescriptionprivate final MethodTypeprivate Supplier<MethodHandle> private boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()(package private) MethodHandleprotected MethodHandletoString()protected abstract MethodHandle
-
Field Details
-
asType
-
initialized
private boolean initialized -
delegate
-
-
Constructor Details
-
UnreflectHandleSupplier
-
-
Method Details
-
get
- Specified by:
getin interfaceSupplier<MethodHandle>
-
initialize
MethodHandle initialize() -
postprocess
-
unreflect
- Throws:
IllegalAccessException
-
toString
-