Enum DescendantIterator.StartWith
- java.lang.Object
-
- java.lang.Enum<DescendantIterator.StartWith>
-
- com.puppycrawl.tools.checkstyle.xpath.iterators.DescendantIterator.StartWith
-
- All Implemented Interfaces:
Serializable
,Comparable<DescendantIterator.StartWith>
- Enclosing class:
- DescendantIterator
public static enum DescendantIterator.StartWith extends Enum<DescendantIterator.StartWith>
Enum defines starting node for iterator.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHILDREN
Omit current node and start with child nodes.CURRENT_NODE
Start with current node.
-
Constructor Summary
Constructors Modifier Constructor Description private
StartWith()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DescendantIterator.StartWith
valueOf(String name)
Returns the enum constant of this type with the specified name.static DescendantIterator.StartWith[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CURRENT_NODE
public static final DescendantIterator.StartWith CURRENT_NODE
Start with current node.
-
CHILDREN
public static final DescendantIterator.StartWith CHILDREN
Omit current node and start with child nodes.
-
-
Constructor Detail
-
StartWith
private StartWith()
-
-
Method Detail
-
values
public static DescendantIterator.StartWith[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DescendantIterator.StartWith c : DescendantIterator.StartWith.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DescendantIterator.StartWith 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 nameNullPointerException
- if the argument is null
-
-