goog.dom.pattern.NodeType
Classgoog.dom.pattern.NodeType
> goog.dom.pattern.AbstractPattern
goog.dom.pattern.NodeType(nodeType)
Pattern object that matches any node of the given type.
nodeType
{goog.dom.NodeType
}
.matchToken(token, type)
Test whether the given token is a text token which matches the string or regular expression provided in the constructor.
token
{Node
}
type
{goog.dom.TagWalkType
}
goog.dom.pattern.MatchType
}
MATCH
if the pattern
matches, NO_MATCH
otherwise.
.matchedNode
{Node
}Inherited from goog.dom.pattern.AbstractPattern
.
The first node matched by this pattern.
.reset()
Inherited from goog.dom.pattern.AbstractPattern
.
Reset any internal state this pattern keeps.