The goog.dom.pattern.ChildMatches Class

goog.dom.pattern.ChildMatches
> goog.dom.pattern.AllChildren
> goog.dom.pattern.AbstractPattern

goog.dom.pattern.ChildMatches(childPattern, opt_minimumMatches)

Pattern object that matches any nodes at or below the current tree depth.

childPattern {goog.dom.pattern.AbstractPattern}
Pattern to collect child matches of.
opt_minimumMatches {number=}
Enforce a minimum nuber of matches. Defaults to 0.

.matchToken(token, type)

Test whether the given token is on the same level.

token {Node}
Token to match against.
type {goog.dom.TagWalkType}
The type of token.
returns {goog.dom.pattern.MatchType}
{@code MATCHING} if the token is on the same level or deeper and {@code BACKTRACK_MATCH} if not.

.matchedNode {Node}

Inherited from goog.dom.pattern.AbstractPattern .

The first node matched by this pattern.

.matches {Array.<Node>}

Array of matched child nodes.

.reset()

Reset any internal state this pattern keeps.