dom.pattern.Text Extends goog.dom.pattern.AbstractPattern
Pattern object that matches text by exact matching or regular expressions.

Inheritance

Constructor

goog.dom.pattern.Text(match)

Parameters

match : string | RegExp
String or regular expression to match against.

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 »
match_ :
The text or regular expression to match.
Code »
matchedNode :
The first node matched by this pattern.
Code »

Static Properties

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

Package dom.pattern

Package Reference