CompiledMatch
CompiledMatch represents a condition and either an output or nested rule.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CompiledMatch(
sourceIdValue,conditionValue,conditionSourceValue,outputValue?,nestedRuleValue?):CompiledMatch
constructor stores one compiled match.
Parameters
Section titled “Parameters”sourceIdValue
Section titled “sourceIdValue”number
conditionValue
Section titled “conditionValue”AST
conditionSourceValue
Section titled “conditionSourceValue”string
outputValue?
Section titled “outputValue?”nestedRuleValue?
Section titled “nestedRuleValue?”Returns
Section titled “Returns”CompiledMatch
Methods
Section titled “Methods”condition()
Section titled “condition()”condition():
AST
condition returns the compiled predicate.
Returns
Section titled “Returns”AST
conditionIsFalse()
Section titled “conditionIsFalse()”conditionIsFalse():
boolean
conditionIsFalse reports whether the condition is the literal false expression.
Returns
Section titled “Returns”boolean
conditionIsTrue()
Section titled “conditionIsTrue()”conditionIsTrue():
boolean
conditionIsTrue reports whether the condition is the literal true expression.
Returns
Section titled “Returns”boolean
nestedRule()
Section titled “nestedRule()”nestedRule():
CompiledRule|undefined
nestedRule returns the compiled nested rule when set.
Returns
Section titled “Returns”CompiledRule | undefined
output()
Section titled “output()”output():
OutputValue|undefined
output returns the compiled output when set.
Returns
Section titled “Returns”OutputValue | undefined
outputType()
Section titled “outputType()”outputType():
Type
outputType returns the output type of the output or nested rule.
Returns
Section titled “Returns”Type
sourceId()
Section titled “sourceId()”sourceId():
number
sourceId returns the source identifier associated with the match.
Returns
Section titled “Returns”number