Documentation

IdentifierMatchResult
in package

Collects the MatchCandidates found during the token trie walk along with their token position. Positions for dynamic properties are also recorded for later use.

Tags
author

DeviceAtlas Limited

Table of Contents

$dynamicPropertyPositions  : mixed
$identifier  : mixed
$tokenPositionToMatchCandidates  : mixed
__construct()  : mixed
addDynamicPropertyPosition()  : mixed
The component and character position are stored in a map with the component as the key as it will later be accessed.
addMatchCandidates()  : mixed
Store match candidates along with it's token position. The token position is used by the lookaround constraints.
getDynamicPropertyPositions()  : mixed
getIdentifier()  : mixed
getMatchCandidates()  : mixed
hasDynamicPropertyPositions()  : mixed

Properties

Methods

__construct()

public __construct(mixed $identifier) : mixed
Parameters
$identifier : mixed
Return values
mixed

addDynamicPropertyPosition()

The component and character position are stored in a map with the component as the key as it will later be accessed.

public addDynamicPropertyPosition( $component,  $charPositionBeforeDynamicValue) : mixed

If the same token appears multiple times in an BasicInput then only the last position will be stored with it. It may appear sensible to store all positions for a component to avoid losing the first position but it is more efficient to only store one position and to use rule constraints to prevent more than one of the same component being added.

Parameters
$component :
$charPositionBeforeDynamicValue :
Return values
mixed

addMatchCandidates()

Store match candidates along with it's token position. The token position is used by the lookaround constraints.

public addMatchCandidates( $tokenPosition,  $matchCandidates) : mixed
Parameters
$tokenPosition :
$matchCandidates :
Return values
mixed

getDynamicPropertyPositions()

public getDynamicPropertyPositions() : mixed
Return values
mixed

hasDynamicPropertyPositions()

public hasDynamicPropertyPositions() : mixed
Return values
mixed

Search results