Enum Class SuperMethodHandle.Binder
java.lang.Object
java.lang.Enum<SuperMethodHandle.Binder>
net.bytebuddy.implementation.bind.annotation.SuperMethodHandle.Binder
- All Implemented Interfaces:
Serializable
,Comparable<SuperMethodHandle.Binder>
,Constable
,TargetMethodAnnotationDrivenBinder.ParameterBinder<SuperMethodHandle>
- Enclosing class:
SuperMethodHandle
public static enum SuperMethodHandle.Binder
extends Enum<SuperMethodHandle.Binder>
implements TargetMethodAnnotationDrivenBinder.ParameterBinder<SuperMethodHandle>
A binder for the
SuperMethodHandle
annotation.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.ParameterBinder
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S extends Annotation>, TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S extends Annotation>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MethodDescription.InDefinedShape
A description of theSuperMethodHandle.fallbackToDefault()
method.private static final MethodDescription.InDefinedShape
A description of theSuperMethodHandle.nullIfImpossible()
method.Fields inherited from interface net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.ParameterBinder
DEFAULTS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind
(AnnotationDescription.Loadable<SuperMethodHandle> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.The annotation type that is handled by this parameter binder.static SuperMethodHandle.Binder
Returns the enum constant of this class with the specified name.static SuperMethodHandle.Binder[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Field Details
-
FALLBACK_TO_DEFAULT
A description of theSuperMethodHandle.fallbackToDefault()
method. -
NULL_IF_IMPOSSIBLE
A description of theSuperMethodHandle.nullIfImpossible()
method.
-
-
Constructor Details
-
Binder
private Binder()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getHandledType
The annotation type that is handled by this parameter binder.- Specified by:
getHandledType
in interfaceTargetMethodAnnotationDrivenBinder.ParameterBinder<SuperMethodHandle>
- Returns:
- The
Annotation.annotationType()
handled by this parameter binder.
-
bind
public MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<SuperMethodHandle> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.- Specified by:
bind
in interfaceTargetMethodAnnotationDrivenBinder.ParameterBinder<SuperMethodHandle>
- Parameters:
annotation
- The annotation that was cause for the delegation to this argument binder.source
- The intercepted source method.target
- Tge target parameter that is subject to be bound to intercepting thesource
method.implementationTarget
- The target of the current implementation that is subject to this binding.assigner
- An assigner that can be used for applying the binding.typing
- The typing to apply.- Returns:
- A parameter binding for the requested target method parameter.
-