Enum MethodRebaseResolver.Disabled
- java.lang.Object
-
- java.lang.Enum<MethodRebaseResolver.Disabled>
-
- net.bytebuddy.dynamic.scaffold.inline.MethodRebaseResolver.Disabled
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodRebaseResolver.Disabled>
,MethodRebaseResolver
- Enclosing interface:
- MethodRebaseResolver
public static enum MethodRebaseResolver.Disabled extends java.lang.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 interface net.bytebuddy.dynamic.scaffold.inline.MethodRebaseResolver
MethodRebaseResolver.Default, MethodRebaseResolver.Disabled, MethodRebaseResolver.Resolution
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Disabled()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<MethodDescription.SignatureToken,MethodRebaseResolver.Resolution>
asTokenMap()
Returns a map of all rebasable methods' signature tokens to their resolution.java.util.List<DynamicType>
getAuxiliaryTypes()
Returns a (potentially empty) list of auxiliary types that are required by this method rebase resolver.MethodRebaseResolver.Resolution
resolve(MethodDescription.InDefinedShape methodDescription)
Checks if a method is eligible for rebasing and resolves this possibly rebased method.static MethodRebaseResolver.Disabled
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodRebaseResolver.Disabled[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MethodRebaseResolver.Disabled INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MethodRebaseResolver.Disabled[] 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 (MethodRebaseResolver.Disabled c : MethodRebaseResolver.Disabled.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodRebaseResolver.Disabled 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 MethodRebaseResolver.Resolution resolve(MethodDescription.InDefinedShape methodDescription)
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
public java.util.List<DynamicType> 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
public java.util.Map<MethodDescription.SignatureToken,MethodRebaseResolver.Resolution> 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.
-
-