Enum SubclassImplementationTarget.Factory
java.lang.Object
java.lang.Enum<SubclassImplementationTarget.Factory>
net.bytebuddy.dynamic.scaffold.subclass.SubclassImplementationTarget.Factory
- All Implemented Interfaces:
Serializable
,Comparable<SubclassImplementationTarget.Factory>
,java.lang.constant.Constable
,Implementation.Target.Factory
- Enclosing class:
SubclassImplementationTarget
public static enum SubclassImplementationTarget.Factory
extends Enum<SubclassImplementationTarget.Factory>
implements Implementation.Target.Factory
A factory for creating a
SubclassImplementationTarget
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA factory creating a subclass implementation target with aSubclassImplementationTarget.OriginTypeResolver.LEVEL_TYPE
.A factory creating a subclass implementation target with aSubclassImplementationTarget.OriginTypeResolver.SUPER_CLASS
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SubclassImplementationTarget.OriginTypeResolver
The origin type resolver that this factory hands to the createdSubclassImplementationTarget
. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Factory
(SubclassImplementationTarget.OriginTypeResolver originTypeResolver) Creates a new factory. -
Method Summary
Modifier and TypeMethodDescriptionmake
(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion) Creates an implementation target.Returns the enum constant of this type with the specified name.static SubclassImplementationTarget.Factory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUPER_CLASS
A factory creating a subclass implementation target with aSubclassImplementationTarget.OriginTypeResolver.SUPER_CLASS
. -
LEVEL_TYPE
A factory creating a subclass implementation target with aSubclassImplementationTarget.OriginTypeResolver.LEVEL_TYPE
.
-
-
Field Details
-
originTypeResolver
The origin type resolver that this factory hands to the createdSubclassImplementationTarget
.
-
-
Constructor Details
-
Factory
Creates a new factory.- Parameters:
originTypeResolver
- The origin type resolver that this factory hands to the createdSubclassImplementationTarget
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
make
public Implementation.Target make(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion) Creates an implementation target.- Specified by:
make
in interfaceImplementation.Target.Factory
- Parameters:
instrumentedType
- The instrumented type.methodGraph
- A method graph of the instrumented type.classFileVersion
- The type's class file version.- Returns:
- An implementation target for the instrumented type.
-