Class Index | File Index

Classes


Class RXBuild.Dom.GroupMatch


Extends RXBuild.Dom.Node.
The GroupMatch class matches a child match and stores the match
Defined in: regex_dom.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
RXBuild.Dom.GroupMatch(childMatch, groupType, name)
Field Summary
Field Attributes Field Name and Description
 
The index of the group in the regular expression
 
The name of the group if it is a named capture
 
The type of group this represents.
 
The actual match required by this group
Fields borrowed from class RXBuild.Dom.Node:
id, next, tokens
Method Summary
Method Attributes Method Name and Description
 
Accept(visitor)
Recursively visits this node
 
 
Returns a human readable description of this match
 
GetHtml(excludeChildren)
Returns an HTML description of this match
 
RunOnMe(func, param)
Visits this node and its children with the provided visitor
Methods borrowed from class RXBuild.Dom.Node:
AddTokens, AppendAtEnd, buildGrammarDiagram, GetChainDescription, GetChainHtml, GetHtmlOpenTag, GetLast, GetTokenHighlightJS, NodeRegExTokenHighlight, RunForAll, StartVisit
Class Detail
RXBuild.Dom.GroupMatch(childMatch, groupType, name)
Parameters:
{RXBuild.Dom.Node} childMatch
The actual match required by this group
{String} groupType
The type of group this represents.
name
Field Detail
{Number} groupIndex
The index of the group in the regular expression

{String} groupName
The name of the group if it is a named capture

{String} groupType
The type of group this represents. Possible values are:
"capture" - Normal captured group
"named" - Named captured group
"no_capture" - Non captured group
"pos_la" - Positive lookahead group
"neg_la" - Negative lookahead group

{RXBuild.Dom.Node} subMatch
The actual match required by this group
Method Detail
{Boolean} Accept(visitor)
Recursively visits this node
Parameters:
{RXBuild.Dom.NodeVisitor} visitor
The visitor currently exploring the DOM
Returns:
{Boolean} The last result of the visitors calls.

buildGrammarDiagramBox(container)

Defined in: regex_syntax_diagram.js.
Parameters:
container

{String} GetDescription()
Returns a human readable description of this match
Returns:
{String} The description of this node in human readable format.

{String} GetHtml(excludeChildren)
Returns an HTML description of this match
Parameters:
excludeChildren
Returns:
{String} An HTML description of this match

{object} RunOnMe(func, param)
Visits this node and its children with the provided visitor
Parameters:
{Function} func
The function to call with each node as first parameter
{object} param
The second parameter to func
Returns:
{object} Whatever func when called on the current instance

Documentation generated by JsDoc Toolkit 2.0.2 on Mon May 02 2016 20:27:56 GMT+0200 (CEST)