DelimiterStack
in package
Table of Contents
- $top : DelimiterInterface|null
- processDelimiters() : void
- push() : void
- removeAll() : void
- removeDelimiter() : void
- removeEarlierMatches() : void
- searchByCharacter() : DelimiterInterface|null
- findEarliest() : DelimiterInterface|null
- removeDelimiterAndNode() : void
- removeDelimitersBetween() : void
Properties
$top
private
DelimiterInterface|null
$top
Methods
processDelimiters()
public
processDelimiters(DelimiterInterface|null $stackBottom, DelimiterProcessorCollection $processors) : void
Parameters
- $stackBottom : DelimiterInterface|null
- $processors : DelimiterProcessorCollection
Return values
void —push()
public
push(DelimiterInterface $newDelimiter) : void
Parameters
- $newDelimiter : DelimiterInterface
Return values
void —removeAll()
public
removeAll([DelimiterInterface|null $stackBottom = null ]) : void
Parameters
- $stackBottom : DelimiterInterface|null = null
Return values
void —removeDelimiter()
public
removeDelimiter(DelimiterInterface $delimiter) : void
Parameters
- $delimiter : DelimiterInterface
Return values
void —removeEarlierMatches()
public
removeEarlierMatches(string $character) : void
Parameters
- $character : string
Return values
void —searchByCharacter()
public
searchByCharacter(string|array<string|int, string> $characters) : DelimiterInterface|null
Parameters
- $characters : string|array<string|int, string>
Return values
DelimiterInterface|null —findEarliest()
private
findEarliest([DelimiterInterface $stackBottom = null ]) : DelimiterInterface|null
Parameters
- $stackBottom : DelimiterInterface = null
Return values
DelimiterInterface|null —removeDelimiterAndNode()
private
removeDelimiterAndNode(DelimiterInterface $delimiter) : void
Parameters
- $delimiter : DelimiterInterface
Return values
void —removeDelimitersBetween()
private
removeDelimitersBetween(DelimiterInterface $opener, DelimiterInterface $closer) : void
Parameters
- $opener : DelimiterInterface
- $closer : DelimiterInterface