Enum Class MethodRebaseResolver.Disabled
java.lang.Object
java.lang.Enum<MethodRebaseResolver.Disabled>
net.bytebuddy.dynamic.scaffold.inline.MethodRebaseResolver.Disabled
- All Implemented Interfaces:
Serializable
,Comparable<MethodRebaseResolver.Disabled>
,Constable
,MethodRebaseResolver
- Enclosing interface:
- MethodRebaseResolver
public static enum MethodRebaseResolver.Disabled
extends Enum<MethodRebaseResolver.Disabled>
implements MethodRebaseResolver
A method rebase resolver that preserves any method in its original form.
-
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.inline.MethodRebaseResolver
MethodRebaseResolver.Default, MethodRebaseResolver.Disabled, MethodRebaseResolver.Resolution
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a map of all rebasable methods' signature tokens to their resolution.Returns a (potentially empty) list of auxiliary types that are required by this method rebase resolver.resolve
(MethodDescription.InDefinedShape methodDescription) Checks if a method is eligible for rebasing and resolves this possibly rebased method.Returns the enum constant of this class with the specified name.static MethodRebaseResolver.Disabled[]
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
-
Disabled
private Disabled()
-
-
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
-
resolve
Checks if a method is eligible for rebasing and resolves this possibly rebased method.- Specified by:
resolve
in interfaceMethodRebaseResolver
- Parameters:
methodDescription
- A description of the method to resolve.- Returns:
- A resolution for the given method.
-
getAuxiliaryTypes
Returns a (potentially empty) list of auxiliary types that are required by this method rebase resolver.- Specified by:
getAuxiliaryTypes
in interfaceMethodRebaseResolver
- Returns:
- A list of auxiliary types that are required by this method rebase resolver.
-
asTokenMap
Returns a map of all rebasable methods' signature tokens to their resolution.- Specified by:
asTokenMap
in interfaceMethodRebaseResolver
- Returns:
- A map of all rebasable methods' signature tokens to their resolution.
-