Enum LatentMatcher.ForSelfDeclaredMethod

java.lang.Object
java.lang.Enum<LatentMatcher.ForSelfDeclaredMethod>
net.bytebuddy.matcher.LatentMatcher.ForSelfDeclaredMethod
All Implemented Interfaces:
Serializable, Comparable<LatentMatcher.ForSelfDeclaredMethod>, java.lang.constant.Constable, LatentMatcher<MethodDescription>
Enclosing interface:
LatentMatcher<T>

public static enum LatentMatcher.ForSelfDeclaredMethod extends Enum<LatentMatcher.ForSelfDeclaredMethod> implements LatentMatcher<MethodDescription>
A latent matching methods that are declared by the resolved type.
  • Enum Constant Details

  • Field Details

    • inverted

      private final boolean inverted
      true if the matcher is inverted.
  • Constructor Details

    • ForSelfDeclaredMethod

      private ForSelfDeclaredMethod(boolean inverted)
      Creates a new latent matcher for a self-declared method.
      Parameters:
      inverted - true if the matcher is inverted.
  • Method Details

    • values

      public static LatentMatcher.ForSelfDeclaredMethod[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LatentMatcher.ForSelfDeclaredMethod valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • resolve

      public ElementMatcher<? super MethodDescription> resolve(TypeDescription typeDescription)
      Resolves the element matcher this instance represents for the supplied type description.
      Specified by:
      resolve in interface LatentMatcher<MethodDescription>
      Parameters:
      typeDescription - The type description for which the represented matcher should be resolved.
      Returns:
      An ElementMatcher that represents this matcher's resolved form.