Class: NdnRegexMatcherBase

NdnRegexMatcherBase(expr, type, backrefManager)

new NdnRegexMatcherBase(expr, type, backrefManager)

Create an instance of the abstract class NdnRegexMatcherBase.
Parameters:
Name Type Description
expr string The expression.
type number The type as an int from the NdnRegexMatcherBase.NdnRegexExprType enum.
backrefManager NdnRegexBackrefManager (optional) The NdnRegexBackrefManager to use. If omitted, use a new NdnRegexBackrefManager().
Source:

Classes

Error

Methods

compile_()

Compile the regular expression to generate more matchers when necessary.
Source:

getExpr() → {string}

Source:
Returns:
Type
string

getMatchResult() → {Array.<Name.Component>}

Get the list of matched name components.
Source:
Returns:
The matched name components. You must not modify this list.
Type
Array.<Name.Component>

match(name, offset, len) → {boolean}

Parameters:
Name Type Description
name Name
offset number
len number
Source:
Returns:
Type
boolean

recursiveMatch_(matcherNo, name, offset, len) → {boolean}

Parameters:
Name Type Description
matcherNo number
name Name
offset number
len number
Source:
Returns:
Type
boolean