Package net.bytebuddy.implementation
Enum Class MethodCall.TargetHandler.ForSelfOrStaticInvocation.Factory
java.lang.Object
java.lang.Enum<MethodCall.TargetHandler.ForSelfOrStaticInvocation.Factory>
net.bytebuddy.implementation.MethodCall.TargetHandler.ForSelfOrStaticInvocation.Factory
- All Implemented Interfaces:
Serializable
,Comparable<MethodCall.TargetHandler.ForSelfOrStaticInvocation.Factory>
,Constable
,InstrumentedType.Prepareable
,MethodCall.TargetHandler.Factory
- Enclosing class:
MethodCall.TargetHandler.ForSelfOrStaticInvocation
protected static enum MethodCall.TargetHandler.ForSelfOrStaticInvocation.Factory
extends Enum<MethodCall.TargetHandler.ForSelfOrStaticInvocation.Factory>
implements MethodCall.TargetHandler.Factory
A factory for invoking a static method or a self-declared method.
-
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.dynamic.scaffold.InstrumentedType.Prepareable
InstrumentedType.Prepareable.NoOp
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake
(Implementation.Target implementationTarget) Creates a target handler for a given implementation target.prepare
(InstrumentedType instrumentedType) Prepares a given instrumented type.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.
-
-
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
-
prepare
Prepares a given instrumented type.- Specified by:
prepare
in interfaceInstrumentedType.Prepareable
- Parameters:
instrumentedType
- The instrumented type in its current form.- Returns:
- The prepared instrumented type.
-
make
Creates a target handler for a given implementation target.- Specified by:
make
in interfaceMethodCall.TargetHandler.Factory
- Parameters:
implementationTarget
- The implementation target to use.- Returns:
- The target handler to use.
-