Class ChildMultiMatcher<T extends Tree, N extends Tree>

java.lang.Object
com.google.errorprone.matchers.ChildMultiMatcher<T,N>
Type Parameters:
T - the type of the node to match on
N - the type of the subnode that the given matcher should match
All Implemented Interfaces:
Matcher<T>, MultiMatcher<T,N>, Serializable
Direct Known Subclasses:
AnnotationMatcher, ConstructorOfClass, HasArguments, MethodHasParameters

public abstract class ChildMultiMatcher<T extends Tree, N extends Tree> extends Object implements MultiMatcher<T,N>
A MultiMatcher that applies a matcher across multiple children of a single ancestor node. Configurable to return true if any of, all of, or the last node matches. In the any or last of cases, provides access to the node that matched.
Author:
eaftan@google.com (Eddie Aftandilian)
See Also:
  • Field Details

    • nodeMatcher

      protected final Matcher<N extends Tree> nodeMatcher
      The matcher to apply to the subnodes in question.
  • Constructor Details

  • Method Details