Class Index | File Index

Classes


Class RXBuild.Dom.AlternativeMatch


Extends RXBuild.Dom.Node.
The AlternativeMatch class matches exactly one of its children
Defined in: regex_dom.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
The list of acceptable matches
Fields borrowed from class RXBuild.Dom.Node:
id, next, tokens
Method Summary
Method Attributes Method Name and Description
 
Accept(visitor)
Recursively visits this node
 
Adds an alternative match to the collection of acceptable matches
 
 
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 alternatives with the provided visitor
Methods borrowed from class RXBuild.Dom.Node:
AddTokens, AppendAtEnd, GetChainDescription, GetChainHtml, GetHtmlOpenTag, GetLast, GetTokenHighlightJS, NodeRegExTokenHighlight, RunForAll, StartVisit
Class Detail
RXBuild.Dom.AlternativeMatch()
Field Detail
{RXBuild.Dom.Node[]} alternatives
The list of acceptable matches
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.

AddAlternative(alt)
Adds an alternative match to the collection of acceptable matches
Parameters:
{RXBuild.Dom.Node} alt
The acceptable match to add

buildGrammarDiagram(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 alternatives 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)