Package com.github.loyada.jdollarx
Class BasicPath.ChildNumber
- java.lang.Object
-
- com.github.loyada.jdollarx.BasicPath.ChildNumber
-
- Enclosing class:
- BasicPath
public static final class BasicPath.ChildNumber extends Object
Allows to define an element that has a predefined number of similar preceding siblings. Count starts at 1 (same as you would use in English). Should be used through the methodBasicPath.childNumber(Integer)
. Example:childNumber(5).ofType(div);
-
-
Constructor Summary
Constructors Constructor Description ChildNumber(Integer n)
Does not return any usable Path by itself.
-
-
-
Constructor Detail
-
ChildNumber
public ChildNumber(Integer n)
Does not return any usable Path by itself. Must be used like:ChildNumber(5).ofType(div)
- Parameters:
n
- the number of child. Count starts at 1.
-
-