goog.dom.pattern.Repeat
Classgoog.dom.pattern.Repeat
> goog.dom.pattern.AbstractPattern
goog.dom.pattern.Repeat(pattern, opt_minimum, opt_maximum)
Pattern object that matches a repetition of another pattern.
pattern
{goog.dom.pattern.AbstractPattern
}
opt_minimum
{number
=}
opt_maximum
{number
=}
.count
{number
}Number of times the pattern has matched.
.matchToken(token, type)
Test whether the given token continues a repeated series of matches of the pattern given in the constructor.
token
{Node
}
type
{goog.dom.TagWalkType
}
goog.dom.pattern.MatchType
}
MATCH
if the pattern
matches, BACKTRACK_MATCH
if the pattern does not match
but already had accumulated matches, MATCHING
if the pattern
starts a match, and NO_MATCH
if the pattern does not match.
.matchedNode
{Node
}Inherited from goog.dom.pattern.AbstractPattern
.
The first node matched by this pattern.
.matches
{Array
.<Node
>}The matched nodes.
.reset()
Reset any internal state this pattern keeps.