@Documented @Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface DefaultMethodHandle
java.lang.invoke.MethodHandle which invokes a
default method implementation of this method. If such a method is not available, this annotation causes that this
delegation target cannot be bound unless nullIfImpossible() is set to true.
Note that requesting such a method exposes the default method to reflective access.| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
nullIfImpossible
Indicates that
null should be assigned to this parameter if no default method is invokable. |
Class<?> |
targetType
Specifies an explicit type that declares the default method to invoke.
|
public abstract Class<?> targetType
TargetType to indicate that the instrumented method declared the method.Copyright © 2014–2023. All rights reserved.