Enum ChildMultiMatcher.MatchType

java.lang.Object
java.lang.Enum<ChildMultiMatcher.MatchType>
com.google.errorprone.matchers.ChildMultiMatcher.MatchType
All Implemented Interfaces:
Serializable, Comparable<ChildMultiMatcher.MatchType>, java.lang.constant.Constable
Enclosing class:
ChildMultiMatcher<T extends com.sun.source.tree.Tree,N extends com.sun.source.tree.Tree>

public static enum ChildMultiMatcher.MatchType extends Enum<ChildMultiMatcher.MatchType>
  • Enum Constant Details

    • ALL

      public static final ChildMultiMatcher.MatchType ALL
      Matches if all of the child elements match the matcher. If the parent element has no child elements, this matcher returns true.
    • AT_LEAST_ONE

      public static final ChildMultiMatcher.MatchType AT_LEAST_ONE
      Matches if at least one of the child elements match the matcher. If the parent element has no child elements, this matcher returns false.
    • LAST

      public static final ChildMultiMatcher.MatchType LAST
      Matches if the last child element matches the matcher, regardless of whether or not any of the other child elements would match the matcher. If the parent element has no child elements, this matcher returns false.
  • Method Details

    • values

      public static ChildMultiMatcher.MatchType[] 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 ChildMultiMatcher.MatchType 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