Package net.bytebuddy.implementation
Enum Class Implementation.Target.AbstractBase.DefaultMethodInvocation
java.lang.Object
java.lang.Enum<Implementation.Target.AbstractBase.DefaultMethodInvocation>
net.bytebuddy.implementation.Implementation.Target.AbstractBase.DefaultMethodInvocation
- All Implemented Interfaces:
Serializable
,Comparable<Implementation.Target.AbstractBase.DefaultMethodInvocation>
,Constable
- Enclosing class:
- Implementation.Target.AbstractBase
protected static enum Implementation.Target.AbstractBase.DefaultMethodInvocation
extends Enum<Implementation.Target.AbstractBase.DefaultMethodInvocation>
Determines if default method invocations are possible.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Implementation.SpecialMethodInvocation
apply
(MethodGraph.Node node, TypeDescription targetType) Resolves a default method invocation for a given node.of
(ClassFileVersion classFileVersion) Resolves a default method invocation depending on the class file version permitting such calls.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
-
ENABLED
Permits default method invocations, if an interface declaring a default method is possible. -
DISABLED
Does not permit default method invocations.
-
-
Constructor Details
-
DefaultMethodInvocation
private DefaultMethodInvocation()
-
-
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
-
of
public static Implementation.Target.AbstractBase.DefaultMethodInvocation of(ClassFileVersion classFileVersion) Resolves a default method invocation depending on the class file version permitting such calls.- Parameters:
classFileVersion
- The class file version to resolve for.- Returns:
- A suitable default method invocation mode.
-
apply
protected abstract Implementation.SpecialMethodInvocation apply(MethodGraph.Node node, TypeDescription targetType) Resolves a default method invocation for a given node.- Parameters:
node
- The node representing the default method call.targetType
- The target type defining the default method.- Returns:
- A suitable special method invocation.
-