Class RXBuild.Dom.CharacterRangeMatch
Extends
RXBuild.Dom.Node.
The CharacterRangeMatch class matches a range of characters (eg: [a-z])
Defined in: regex_dom_terminals.js.
Constructor Attributes | Constructor Name and Description |
---|---|
RXBuild.Dom.CharacterRangeMatch(reversed)
|
Field Attributes | Field Name and Description |
---|---|
An array of objects representing acceptable ranges
|
|
If set, the range match is negated
|
- Fields borrowed from class RXBuild.Dom.Node:
- id, next, tokens
Method Attributes | Method Name and Description |
---|---|
AddChar(text)
|
|
AddChars(chars)
|
|
AddClass(chars)
|
|
AddRange(start_range, stop_range, reverseRange)
|
|
Returns a human readable description of this match
|
|
GetHtml()
Returns an HTML description of this match
|
- Methods borrowed from class RXBuild.Dom.Node:
- Accept, AddTokens, AppendAtEnd, buildGrammarDiagram, GetChainDescription, GetChainHtml, GetHtmlOpenTag, GetLast, GetTokenHighlightJS, NodeRegExTokenHighlight, RunForAll, RunOnMe, StartVisit
Class Detail
RXBuild.Dom.CharacterRangeMatch(reversed)
- Parameters:
- {Boolean} reversed
- If set, the range is negated
Field Detail
{Array}
ranges
An array of objects representing acceptable ranges
{Boolean}
reversed
If set, the range match is negated
Method Detail
AddChar(text)
- Parameters:
- text
AddChars(chars)
- Parameters:
- chars
AddClass(chars)
- Parameters:
- chars
AddRange(start_range, stop_range, reverseRange)
- Parameters:
- start_range
- stop_range
- reverseRange
{String}
GetDescription()
Returns a human readable description of this match
- Returns:
- {String} The description of this node in human readable format.
{String}
GetHtml()
Returns an HTML description of this match
- Returns:
- {String} An HTML description of this match