Enum SubclassImplementationTarget.Factory
- java.lang.Object
-
- java.lang.Enum<SubclassImplementationTarget.Factory>
-
- net.bytebuddy.dynamic.scaffold.subclass.SubclassImplementationTarget.Factory
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SubclassImplementationTarget.Factory>
,Implementation.Target.Factory
- Enclosing class:
- SubclassImplementationTarget
public static enum SubclassImplementationTarget.Factory extends java.lang.Enum<SubclassImplementationTarget.Factory> implements Implementation.Target.Factory
A factory for creating aSubclassImplementationTarget
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LEVEL_TYPE
A factory creating a subclass implementation target with aSubclassImplementationTarget.OriginTypeResolver.LEVEL_TYPE
.SUPER_CLASS
A factory creating a subclass implementation target with aSubclassImplementationTarget.OriginTypeResolver.SUPER_CLASS
.
-
Field Summary
Fields Modifier and Type Field Description private SubclassImplementationTarget.OriginTypeResolver
originTypeResolver
The origin type resolver that this factory hands to the createdSubclassImplementationTarget
.
-
Constructor Summary
Constructors Modifier Constructor Description private
Factory(SubclassImplementationTarget.OriginTypeResolver originTypeResolver)
Creates a new factory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Implementation.Target
make(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, ClassFileVersion classFileVersion)
Creates an implementation target.static SubclassImplementationTarget.Factory
valueOf(java.lang.String name)
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 Detail
-
SUPER_CLASS
public static final SubclassImplementationTarget.Factory SUPER_CLASS
A factory creating a subclass implementation target with aSubclassImplementationTarget.OriginTypeResolver.SUPER_CLASS
.
-
LEVEL_TYPE
public static final SubclassImplementationTarget.Factory LEVEL_TYPE
A factory creating a subclass implementation target with aSubclassImplementationTarget.OriginTypeResolver.LEVEL_TYPE
.
-
-
Field Detail
-
originTypeResolver
private final SubclassImplementationTarget.OriginTypeResolver originTypeResolver
The origin type resolver that this factory hands to the createdSubclassImplementationTarget
.
-
-
Constructor Detail
-
Factory
private Factory(SubclassImplementationTarget.OriginTypeResolver originTypeResolver)
Creates a new factory.- Parameters:
originTypeResolver
- The origin type resolver that this factory hands to the createdSubclassImplementationTarget
.
-
-
Method Detail
-
values
public static SubclassImplementationTarget.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 (SubclassImplementationTarget.Factory c : SubclassImplementationTarget.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 SubclassImplementationTarget.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
-
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.
-
-