Package net.bytebuddy.implementation
Enum MethodCall.ArgumentLoader.ForThisReference.Factory
- java.lang.Object
-
- java.lang.Enum<MethodCall.ArgumentLoader.ForThisReference.Factory>
-
- net.bytebuddy.implementation.MethodCall.ArgumentLoader.ForThisReference.Factory
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodCall.ArgumentLoader.ForThisReference.Factory>
,InstrumentedType.Prepareable
,MethodCall.ArgumentLoader.Factory
- Enclosing class:
- MethodCall.ArgumentLoader.ForThisReference
public static enum MethodCall.ArgumentLoader.ForThisReference.Factory extends java.lang.Enum<MethodCall.ArgumentLoader.ForThisReference.Factory> implements MethodCall.ArgumentLoader.Factory
A factory for an argument loader that supplies thethis
value as an argument.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Factory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodCall.ArgumentLoader.ArgumentProvider
make(Implementation.Target implementationTarget)
Creates an argument provider for the supplied implementation target.InstrumentedType
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.static MethodCall.ArgumentLoader.ForThisReference.Factory
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodCall.ArgumentLoader.ForThisReference.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 MethodCall.ArgumentLoader.ForThisReference.Factory INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MethodCall.ArgumentLoader.ForThisReference.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 (MethodCall.ArgumentLoader.ForThisReference.Factory c : MethodCall.ArgumentLoader.ForThisReference.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 MethodCall.ArgumentLoader.ForThisReference.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
-
prepare
public InstrumentedType prepare(InstrumentedType instrumentedType)
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
public MethodCall.ArgumentLoader.ArgumentProvider make(Implementation.Target implementationTarget)
Creates an argument provider for the supplied implementation target.- Specified by:
make
in interfaceMethodCall.ArgumentLoader.Factory
- Parameters:
implementationTarget
- The implementation target to use.- Returns:
- An appropriate argument provider.
-
-