null value is requested by setting a property.
net.bytebuddy.implementation.MethodDelegation , TargetMethodAnnotationDrivenBinder
| Modifier and Type | Class and Description |
|---|---|
| public static enum | DefaultCallHandle.
A binder for handling the |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if a null constant should be assigned to this parameter in case that a legal binding is impossible.Assigns |
| public Class | Returns: The target interface that a default method invocation is to be defined upon. If no such explicit target is set, this parameter should not be defined as the predefinedvoid type encodes an implicit resolution.If this parameter is not explicitly set, a parameter with the |
| nullIfImpossible | back to summary |
|---|---|
| public boolean nullIfImpossible() Assigns
| |
| targetType | back to summary |
|---|---|
| public Class If this parameter is not explicitly set, a parameter with the If this parameter is however set to an explicit interface type, a default method is always invoked on this given type as long as this type defines a method with a compatible signature. If this is not the case, the target method with the annotated parameter is no longer considered as a possible binding candidate of a source method.
| |
DefaultCallHandle annotation.
TargetMethodAnnotationDrivenBinder
| Modifier and Type | Class and Description |
|---|---|
| protected static interface | DefaultCallHandle.
A default method locator is responsible for looking up a default method to a given source method. |
| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultCallHandle. | INSTANCE
The singleton instance. |
| private static final MethodDescription. | NULL_IF_IMPOSSIBLE
A reference to the null if possible method of the default call annotation. |
| private static final MethodDescription. | TARGET_TYPE
A reference to the target type method of the default call annotation. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public MethodDelegationBinder. | bind(AnnotationDescription.
The annotation that was cause for the delegation to this argument binder. annotation,The intercepted source method. source, ParameterDescription Tge target parameter that is subject to be bound to
intercepting the target, Implementation.source method.The target of the current implementation that is subject to this binding. implementationTarget,An assigner that can be used for applying the binding. assigner, Assigner.The typing to apply. typing |
| public Class | getHandledType()
The annotation type that is handled by this parameter binder.
|
| public static DefaultCallHandle. | |
| public static DefaultCallHandle. |
| INSTANCE | back to summary |
|---|---|
| public static final DefaultCallHandle. The singleton instance. | |
| NULL_IF_IMPOSSIBLE | back to summary |
|---|---|
| private static final MethodDescription. A reference to the null if possible method of the default call annotation. | |
| TARGET_TYPE | back to summary |
|---|---|
| private static final MethodDescription. A reference to the target type method of the default call annotation. | |
| Binder | back to summary |
|---|---|
| private Binder() | |
| bind | back to summary |
|---|---|
| public MethodDelegationBinder. Creates a parameter binding for the given target parameter.
| |
| getHandledType | back to summary |
|---|---|
| public Class The annotation type that is handled by this parameter binder.
| |
| valueOf | back to summary |
|---|---|
| public static DefaultCallHandle. | |
| values | back to summary |
|---|---|
| public static DefaultCallHandle. | |
| Modifier and Type | Class and Description |
|---|---|
| public static class | DefaultCallHandle.
An explicit default method locator attempts to look up a default method in the specified interface type. |
| public static enum | DefaultCallHandle.
An implicit default method locator that only permits the invocation of a default method if the source method itself represents a method that was defined on a default method interface. |
| Modifier and Type | Method and Description |
|---|---|
| public Implementation. | Returns: A special method invocation of the default method or an illegal special method invocation, if no suitable invocation could be located.The current implementation target. implementationTarget,The source method for which a default method should be looked up. source)Locates the correct default method to a given source method. |
| resolve | back to summary |
|---|---|
| public Implementation. Locates the correct default method to a given source method.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final TypeDescription | typeDescription
A description of the type on which the default method should be invoked. |
| Access | Constructor and Description |
|---|---|
| public | Explicit(TypeDescription
The actual target interface as explicitly defined by
typeDescription)DefaultCallHandle#targetType().Creates a new explicit default method locator. |
| Modifier and Type | Method and Description |
|---|---|
| public Implementation. | resolve(Implementation.
The current implementation target. implementationTarget,The source method for which a default method should be looked up. source)Implements org. |
| typeDescription | back to summary |
|---|---|
| private final TypeDescription typeDescription A description of the type on which the default method should be invoked. | |
| Explicit | back to summary |
|---|---|
| public Explicit(TypeDescription typeDescription) Creates a new explicit default method locator.
| |
| resolve | back to summary |
|---|---|
| public Implementation. Implements org. Locates the correct default method to a given source method.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultCallHandle. | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Implementation. | resolve(Implementation.
The current implementation target. implementationTarget,The source method for which a default method should be looked up. source)Implements org. |
| public static DefaultCallHandle. | |
| public static DefaultCallHandle. |
| INSTANCE | back to summary |
|---|---|
| public static final DefaultCallHandle. The singleton instance. | |
| Implicit | back to summary |
|---|---|
| private Implicit() | |
| resolve | back to summary |
|---|---|
| public Implementation. Implements org. Locates the correct default method to a given source method.
| |
| valueOf | back to summary |
|---|---|
| public static DefaultCallHandle. | |
| values | back to summary |
|---|---|
| public static DefaultCallHandle. | |