Package net.bytebuddy.asm
Enum Class Advice.AssignReturned.ToArguments.Handler.Factory
java.lang.Object
java.lang.Enum<Advice.AssignReturned.ToArguments.Handler.Factory>
net.bytebuddy.asm.Advice.AssignReturned.ToArguments.Handler.Factory
- All Implemented Interfaces:
Serializable
,Comparable<Advice.AssignReturned.ToArguments.Handler.Factory>
,Constable
,Advice.AssignReturned.Handler.Factory<Advice.AssignReturned.ToArguments>
- Enclosing class:
- Advice.AssignReturned.ToArguments.Handler
public static enum Advice.AssignReturned.ToArguments.Handler.Factory
extends Enum<Advice.AssignReturned.ToArguments.Handler.Factory>
implements Advice.AssignReturned.Handler.Factory<Advice.AssignReturned.ToArguments>
A factory to create a handler for a
Advice.AssignReturned.ToArguments
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.asm.Advice.AssignReturned.Handler.Factory
Advice.AssignReturned.Handler.Factory.Simple<S extends Annotation>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MethodDescription.InDefinedShape
A description of theAdvice.AssignReturned.ToArguments.ToArgument.index()
method.private static final MethodDescription.InDefinedShape
A description of theAdvice.AssignReturned.ToArguments.ToArgument.typing()
method.private static final MethodDescription.InDefinedShape
A description of theAdvice.AssignReturned.ToArguments.ToArgument.value()
method.private static final MethodDescription.InDefinedShape
A description of theAdvice.AssignReturned.ToArguments.value()
method. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the annotation type that activates this handler factory.make
(MethodDescription.InDefinedShape advice, boolean exit, AnnotationDescription.Loadable<? extends Advice.AssignReturned.ToArguments> annotation) Resolves a list of handlers for this factory.Returns the enum constant of this class with the specified name.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
-
TO_ARGUMENTS_VALUE
A description of theAdvice.AssignReturned.ToArguments.value()
method. -
TO_ARGUMENT_VALUE
A description of theAdvice.AssignReturned.ToArguments.ToArgument.value()
method. -
TO_ARGUMENT_INDEX
A description of theAdvice.AssignReturned.ToArguments.ToArgument.index()
method. -
TO_ARGUMENT_TYPING
A description of theAdvice.AssignReturned.ToArguments.ToArgument.typing()
method.
-
-
Constructor Details
-
Factory
private Factory()
-
-
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
-
getAnnotationType
Returns the annotation type that activates this handler factory.- Specified by:
getAnnotationType
in interfaceAdvice.AssignReturned.Handler.Factory<Advice.AssignReturned.ToArguments>
- Returns:
- The annotation type that activates this handler factory.
-
make
public List<Advice.AssignReturned.Handler> make(MethodDescription.InDefinedShape advice, boolean exit, AnnotationDescription.Loadable<? extends Advice.AssignReturned.ToArguments> annotation) Resolves a list of handlers for this factory.- Specified by:
make
in interfaceAdvice.AssignReturned.Handler.Factory<Advice.AssignReturned.ToArguments>
- Parameters:
advice
- The advice method for which to resolve handlers.exit
-true
if this factory is applied for exit advice.annotation
- The annotation that activated this handler factory.- Returns:
- A list of handlers to apply.
-