Enum Class DefaultCall.Binder.DefaultMethodLocator.Implicit

java.lang.Object
java.lang.Enum<DefaultCall.Binder.DefaultMethodLocator.Implicit>
net.bytebuddy.implementation.bind.annotation.DefaultCall.Binder.DefaultMethodLocator.Implicit
All Implemented Interfaces:
Serializable, Comparable<DefaultCall.Binder.DefaultMethodLocator.Implicit>, Constable, DefaultCall.Binder.DefaultMethodLocator
Enclosing interface:
DefaultCall.Binder.DefaultMethodLocator

public static enum DefaultCall.Binder.DefaultMethodLocator.Implicit extends Enum<DefaultCall.Binder.DefaultMethodLocator.Implicit> implements DefaultCall.Binder.DefaultMethodLocator
An implicit default method locator that only permits the invocation of a default method if the source method itself represents a method that was defined on a default method interface.
  • Enum Constant Details

  • Constructor Details

    • Implicit

      private Implicit()
  • 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 name
      NullPointerException - if the argument is null
    • resolve

      public Implementation.SpecialMethodInvocation resolve(Implementation.Target implementationTarget, MethodDescription source)
      Locates the correct default method to a given source method.
      Specified by:
      resolve in interface DefaultCall.Binder.DefaultMethodLocator
      Parameters:
      implementationTarget - The current implementation target.
      source - The source method for which a default method should be looked up.
      Returns:
      A special method invocation of the default method or an illegal special method invocation, if no suitable invocation could be located.