Enum Class SubclassImplementationTarget.OriginTypeResolver
java.lang.Object
java.lang.Enum<SubclassImplementationTarget.OriginTypeResolver>
net.bytebuddy.dynamic.scaffold.subclass.SubclassImplementationTarget.OriginTypeResolver
- All Implemented Interfaces:
Serializable
,Comparable<SubclassImplementationTarget.OriginTypeResolver>
,Constable
- Enclosing class:
SubclassImplementationTarget
public static enum SubclassImplementationTarget.OriginTypeResolver
extends Enum<SubclassImplementationTarget.OriginTypeResolver>
Responsible for identifying the origin type that an implementation target represents when
Implementation.Target.getOriginType()
is invoked.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIdentifies the instrumented type as its own origin type.Identifies the super type of an instrumented type as the origin class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TypeDefinition
identify
(TypeDescription typeDescription) Identifies the origin type to a given type description.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
-
SUPER_CLASS
Identifies the super type of an instrumented type as the origin class. -
LEVEL_TYPE
Identifies the instrumented type as its own origin type.
-
-
Constructor Details
-
OriginTypeResolver
private OriginTypeResolver()
-
-
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
-
identify
Identifies the origin type to a given type description.- Parameters:
typeDescription
- The type description for which an origin type should be identified.- Returns:
- The origin type to the given type description.
-