Class Index | File Index

Classes


Class RXBuild.Engine.ResultListener

The RXBuild.Engine.ResultListener is an abstract interface that receives the result of a regular expression matcher.
Defined in: regex_engine.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a new instance of RXBuild.Engine.ResultListener
Method Summary
Method Attributes Method Name and Description
 
finished(regexp, inputText, matchCount, error)
Called when matching is over.
 
foundMatch(regexp, inputText, matchIndex, matchItem)
Called once for each match.
 
startMatch(regexp, inputText)
Called when a new match session has started
Class Detail
RXBuild.Engine.ResultListener()
Creates a new instance of RXBuild.Engine.ResultListener
Method Detail
finished(regexp, inputText, matchCount, error)
Called when matching is over.
Parameters:
{RXBuild.RegExp} regexp
The pattern that was run
{String} inputText
The input text against which to match
{Integer} matchCount
The number of matches (until aborting), or -1 if an error occured.
{String} error
If an error occured, the error object, otherwise, null

{Boolean} foundMatch(regexp, inputText, matchIndex, matchItem)
Called once for each match.
Parameters:
{RXBuild.RegExp} regexp
The pattern that is running
{String} inputText
The input text against which to match
{Number} matchIndex
The 0-based index of this match
{object} matchItem
A single match description
Returns:
{Boolean} True to continue matching, false to abort.

startMatch(regexp, inputText)
Called when a new match session has started
Parameters:
{RXBuild.RegExp} regexp
The pattern that will be ran
{String} inputText
The input text against which to match

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