goog.dom.pattern.Sequence
Classgoog.dom.pattern.Sequence
> goog.dom.pattern.AbstractPattern
goog.dom.pattern.Sequence(patterns, opt_ignoreWhitespace)
Pattern object that matches a sequence of other patterns.
patterns
{Array
.<goog.dom.pattern.AbstractPattern
>}
opt_ignoreWhitespace
{boolean
=}
.matchToken(token, type)
Test whether the given token starts, continues, or finishes the sequence of patterns given in the constructor.
token
{Node
}
type
{goog.dom.TagWalkType
}
goog.dom.pattern.MatchType
}
MATCH
if the pattern
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.
.patterns
{Array
.<goog.dom.pattern.AbstractPattern
>}Ordered array of patterns to match.
.reset()
Reset any internal state this pattern keeps.