Package net.bytebuddy.asm
Enum Advice.AssignReturned.ToFields.Handler.Factory
- java.lang.Object
-
- java.lang.Enum<Advice.AssignReturned.ToFields.Handler.Factory>
-
- net.bytebuddy.asm.Advice.AssignReturned.ToFields.Handler.Factory
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Advice.AssignReturned.ToFields.Handler.Factory>
,Advice.AssignReturned.Handler.Factory<Advice.AssignReturned.ToFields>
- Enclosing class:
- Advice.AssignReturned.ToFields.Handler
public static enum Advice.AssignReturned.ToFields.Handler.Factory extends java.lang.Enum<Advice.AssignReturned.ToFields.Handler.Factory> implements Advice.AssignReturned.Handler.Factory<Advice.AssignReturned.ToFields>
A factory to create a handler for aAdvice.AssignReturned.ToFields
annotation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.AssignReturned.Handler.Factory
Advice.AssignReturned.Handler.Factory.Simple<S extends java.lang.annotation.Annotation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Field Summary
Fields Modifier and Type Field Description private static MethodDescription.InDefinedShape
TO_FIELD_DECLARING_TYPE
A description of theAdvice.AssignReturned.ToFields.ToField.declaringType()
method.private static MethodDescription.InDefinedShape
TO_FIELD_INDEX
A description of theAdvice.AssignReturned.ToFields.ToField.index()
method.private static MethodDescription.InDefinedShape
TO_FIELD_TYPING
A description of theAdvice.AssignReturned.ToFields.ToField.typing()
method.private static MethodDescription.InDefinedShape
TO_FIELD_VALUE
A description of theAdvice.AssignReturned.ToFields.ToField.value()
method.private static MethodDescription.InDefinedShape
TO_FIELDS_VALUE
A description of theAdvice.AssignReturned.ToFields.value()
method.
-
Constructor Summary
Constructors Modifier Constructor Description private
Factory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<Advice.AssignReturned.ToFields>
getAnnotationType()
Returns the annotation type that activates this handler factory.java.util.List<Advice.AssignReturned.Handler>
make(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends Advice.AssignReturned.ToFields> annotation)
Resolves a list of handlers for this factory.static Advice.AssignReturned.ToFields.Handler.Factory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Advice.AssignReturned.ToFields.Handler.Factory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Advice.AssignReturned.ToFields.Handler.Factory INSTANCE
The singleton instance.
-
-
Field Detail
-
TO_FIELDS_VALUE
private static final MethodDescription.InDefinedShape TO_FIELDS_VALUE
A description of theAdvice.AssignReturned.ToFields.value()
method.
-
TO_FIELD_VALUE
private static final MethodDescription.InDefinedShape TO_FIELD_VALUE
A description of theAdvice.AssignReturned.ToFields.ToField.value()
method.
-
TO_FIELD_INDEX
private static final MethodDescription.InDefinedShape TO_FIELD_INDEX
A description of theAdvice.AssignReturned.ToFields.ToField.index()
method.
-
TO_FIELD_DECLARING_TYPE
private static final MethodDescription.InDefinedShape TO_FIELD_DECLARING_TYPE
A description of theAdvice.AssignReturned.ToFields.ToField.declaringType()
method.
-
TO_FIELD_TYPING
private static final MethodDescription.InDefinedShape TO_FIELD_TYPING
A description of theAdvice.AssignReturned.ToFields.ToField.typing()
method.
-
-
Method Detail
-
values
public static Advice.AssignReturned.ToFields.Handler.Factory[] 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 (Advice.AssignReturned.ToFields.Handler.Factory c : Advice.AssignReturned.ToFields.Handler.Factory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Advice.AssignReturned.ToFields.Handler.Factory 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
-
getAnnotationType
public java.lang.Class<Advice.AssignReturned.ToFields> getAnnotationType()
Returns the annotation type that activates this handler factory.- Specified by:
getAnnotationType
in interfaceAdvice.AssignReturned.Handler.Factory<Advice.AssignReturned.ToFields>
- Returns:
- The annotation type that activates this handler factory.
-
make
public java.util.List<Advice.AssignReturned.Handler> make(TypeDescription returnType, boolean exit, AnnotationDescription.Loadable<? extends Advice.AssignReturned.ToFields> annotation)
Resolves a list of handlers for this factory.- Specified by:
make
in interfaceAdvice.AssignReturned.Handler.Factory<Advice.AssignReturned.ToFields>
- Parameters:
returnType
- The advice method's return type 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.
-
-