Class LatentMatcher.Disjunction<S>

java.lang.Object
net.bytebuddy.matcher.LatentMatcher.Disjunction<S>
Type Parameters:
S - The type of the matched element.
All Implemented Interfaces:
LatentMatcher<S>
Enclosing interface:
LatentMatcher<T>

@Enhance public static class LatentMatcher.Disjunction<S> extends Object implements LatentMatcher<S>
A matcher that computes the disjunction of all supplied latent matchers.
  • Field Details

    • matchers

      private final List<? extends LatentMatcher<? super S>> matchers
      The matchers this disjunction represents.
  • Constructor Details

    • Disjunction

      public Disjunction(LatentMatcher<? super S>... matcher)
      Creates a new disjunction of latent matchers.
      Parameters:
      matcher - The matchers this disjunction represents.
    • Disjunction

      public Disjunction(List<? extends LatentMatcher<? super S>> matchers)
      Creates a new disjunction of latent matchers.
      Parameters:
      matchers - The matchers this disjunction represents.
  • Method Details

    • resolve

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