LookaroundConstraint
in package
Defines a lookaround constraint. This is a constraint that may be applied to a component found via the token trie walk. The constraint contains an component index and an allowed offset that it can exist for the constraint to be valid
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- getMaxOffset() : mixed
- getMinOffset() : mixed
- getToFindComponentIndex() : mixed
- isValid() : mixed
Properties
$mnO
private
mixed
$mnO
$mxO
private
mixed
$mxO
$tFCI
private
mixed
$tFCI
Methods
__construct()
public
__construct(mixed $toFindComponentIndex, mixed $minOffset, mixed $maxOffset) : mixed
Parameters
- $toFindComponentIndex : mixed
- $minOffset : mixed
- $maxOffset : mixed
getMaxOffset()
public
getMaxOffset() : mixed
getMinOffset()
public
getMinOffset() : mixed
getToFindComponentIndex()
public
getToFindComponentIndex() : mixed
isValid()
public
isValid(mixed $referenceTokenPosition, mixed $allCandidates) : mixed
Parameters
- $referenceTokenPosition : mixed
- $allCandidates : mixed