Enum DefaultMethod.Binder.MethodLocator.ForImplicitType
- java.lang.Object
-
- java.lang.Enum<DefaultMethod.Binder.MethodLocator.ForImplicitType>
-
- net.bytebuddy.implementation.bind.annotation.DefaultMethod.Binder.MethodLocator.ForImplicitType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DefaultMethod.Binder.MethodLocator.ForImplicitType>
,DefaultMethod.Binder.MethodLocator
- Enclosing interface:
- DefaultMethod.Binder.MethodLocator
public static enum DefaultMethod.Binder.MethodLocator.ForImplicitType extends java.lang.Enum<DefaultMethod.Binder.MethodLocator.ForImplicitType> implements DefaultMethod.Binder.MethodLocator
A method locator for an implicit target type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.annotation.DefaultMethod.Binder.MethodLocator
DefaultMethod.Binder.MethodLocator.ForExplicitType, DefaultMethod.Binder.MethodLocator.ForImplicitType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForImplicitType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Implementation.SpecialMethodInvocation
resolve(Implementation.Target implementationTarget, MethodDescription source)
Resolves the special method invocation to this target.static DefaultMethod.Binder.MethodLocator.ForImplicitType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DefaultMethod.Binder.MethodLocator.ForImplicitType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final DefaultMethod.Binder.MethodLocator.ForImplicitType INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static DefaultMethod.Binder.MethodLocator.ForImplicitType[] 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 (DefaultMethod.Binder.MethodLocator.ForImplicitType c : DefaultMethod.Binder.MethodLocator.ForImplicitType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultMethod.Binder.MethodLocator.ForImplicitType 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
-
resolve
public Implementation.SpecialMethodInvocation resolve(Implementation.Target implementationTarget, MethodDescription source)
Resolves the special method invocation to this target.- Specified by:
resolve
in interfaceDefaultMethod.Binder.MethodLocator
- Parameters:
implementationTarget
- The implementation target.source
- The method being instrumented.- Returns:
- A special method invocation that represents the super call of this binding.
-
-