Enum SuperMethod.Binder
- java.lang.Object
-
- java.lang.Enum<SuperMethod.Binder>
-
- net.bytebuddy.implementation.bind.annotation.SuperMethod.Binder
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SuperMethod.Binder>,TargetMethodAnnotationDrivenBinder.ParameterBinder<SuperMethod>
- Enclosing class:
- SuperMethod
public static enum SuperMethod.Binder extends java.lang.Enum<SuperMethod.Binder> implements TargetMethodAnnotationDrivenBinder.ParameterBinder<SuperMethod>
A binder for theSuperMethodannotation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classSuperMethod.Binder.DelegationMethodLoads the delegation method constant onto the stack.-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.ParameterBinder
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S extends java.lang.annotation.Annotation>, TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S extends java.lang.annotation.Annotation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCEThe singleton instance.
-
Field Summary
Fields Modifier and Type Field Description private static MethodDescription.InDefinedShapeCACHEDA description of theSuperMethod.cached()method.private static MethodDescription.InDefinedShapeFALLBACK_TO_DEFAULTA description of theSuperMethod.fallbackToDefault()method.private static MethodDescription.InDefinedShapeNULL_IF_IMPOSSIBLEA description of theSuperMethod.nullIfImpossible()method.private static MethodDescription.InDefinedShapePRIVILEGEDA description of theSuperMethod.privileged()method.-
Fields inherited from interface net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.ParameterBinder
DEFAULTS
-
-
Constructor Summary
Constructors Modifier Constructor Description privateBinder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodDelegationBinder.ParameterBinding<?>bind(AnnotationDescription.Loadable<SuperMethod> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing)Creates a parameter binding for the given target parameter.java.lang.Class<SuperMethod>getHandledType()The annotation type that is handled by this parameter binder.static SuperMethod.BindervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SuperMethod.Binder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final SuperMethod.Binder INSTANCE
The singleton instance.
-
-
Field Detail
-
CACHED
private static final MethodDescription.InDefinedShape CACHED
A description of theSuperMethod.cached()method.
-
PRIVILEGED
private static final MethodDescription.InDefinedShape PRIVILEGED
A description of theSuperMethod.privileged()method.
-
FALLBACK_TO_DEFAULT
private static final MethodDescription.InDefinedShape FALLBACK_TO_DEFAULT
A description of theSuperMethod.fallbackToDefault()method.
-
NULL_IF_IMPOSSIBLE
private static final MethodDescription.InDefinedShape NULL_IF_IMPOSSIBLE
A description of theSuperMethod.nullIfImpossible()method.
-
-
Method Detail
-
values
public static SuperMethod.Binder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SuperMethod.Binder c : SuperMethod.Binder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SuperMethod.Binder valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getHandledType
public java.lang.Class<SuperMethod> getHandledType()
The annotation type that is handled by this parameter binder.- Specified by:
getHandledTypein interfaceTargetMethodAnnotationDrivenBinder.ParameterBinder<SuperMethod>- Returns:
- The
Annotation.annotationType()handled by this parameter binder.
-
bind
public MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<SuperMethod> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing)
Creates a parameter binding for the given target parameter.- Specified by:
bindin interfaceTargetMethodAnnotationDrivenBinder.ParameterBinder<SuperMethod>- 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 thesourcemethod.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.
-
-