The goog.dom.pattern.AbstractPattern Class

goog.dom.pattern.AbstractPattern()

Base pattern class for DOM matching.

.matchToken(token, type)

Test whether this pattern matches the given token.

token {Node}
Token to match against.
type {goog.dom.TagWalkType}
The type of token.
returns {goog.dom.pattern.MatchType}
{@code MATCH} if the pattern matches.

.matchedNode {Node}

The first node matched by this pattern.

.reset()

Reset any internal state this pattern keeps.