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>
- Author:
- eaftan@google.com (Eddie Aftandilian)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMatches if all of the child elements match the matcher.Matches if at least one of the child elements match the matcher.Matches if the last child element matches the matcher, regardless of whether or not any of the other child elements would match the matcher. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChildMultiMatcher.MatchType
Returns the enum constant of this type with the specified name.static ChildMultiMatcher.MatchType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException
- if the argument is null
-