Skip to content

CompiledMatch

CompiledMatch represents a condition and either an output or nested rule.

new CompiledMatch(sourceIdValue, conditionValue, conditionSourceValue, outputValue?, nestedRuleValue?): CompiledMatch

constructor stores one compiled match.

number

AST

string

OutputValue

CompiledRule

CompiledMatch

condition(): AST

condition returns the compiled predicate.

AST


conditionIsFalse(): boolean

conditionIsFalse reports whether the condition is the literal false expression.

boolean


conditionIsTrue(): boolean

conditionIsTrue reports whether the condition is the literal true expression.

boolean


nestedRule(): CompiledRule | undefined

nestedRule returns the compiled nested rule when set.

CompiledRule | undefined


output(): OutputValue | undefined

output returns the compiled output when set.

OutputValue | undefined


outputType(): Type

outputType returns the output type of the output or nested rule.

Type


sourceId(): number

sourceId returns the source identifier associated with the match.

number