dom.pattern.NodeType Extends goog.dom.pattern.AbstractPattern
Pattern object that matches any node of the given type.

Inheritance

Constructor

goog.dom.pattern.NodeType(nodeType)

Parameters

nodeType : goog.dom.NodeType
The node type to match.

Instance Methods

Public Protected Private
matchToken(tokentype) goog.dom.pattern.MatchType
Test whether the given token is a text token which matches the string or regular expression provided in the constructor.
Arguments:
token : Node
Token to match against.
type : goog.dom.TagWalkType
The type of token.
Returns: goog.dom.pattern.MatchType  MATCH if the pattern matches, NO_MATCH otherwise.
code »
matchToken(tokentype) goog.dom.pattern.MatchType
Test whether this pattern matches the given token.
Arguments:
token : Node
Token to match against.
type : goog.dom.TagWalkType
The type of token.
Returns: goog.dom.pattern.MatchType  MATCH if the pattern matches.
code »
reset()
Reset any internal state this pattern keeps.
code »

Instance Properties

constructor :
No description.
Code »
nodeType_ :
The node type to match.
Code »
matchedNode :
The first node matched by this pattern.
Code »

Static Properties

goog.dom.pattern.NodeType.superClass_ :
No description.
Code »

Package dom.pattern

Package Reference