AnonymousReferenceRule
extends ReferenceRule
in package
FinalYes
Rule to parse for simple anonymous references
Syntax example:
Example reference__
Tags
Table of Contents
Methods
- applies() : bool
- apply() : AbstractLinkInlineNode|null
- getPriority() : int
- createReference() : AbstractLinkInlineNode
- rollback() : void
- createAnonymousReference() : AbstractLinkInlineNode
Methods
applies()
public
applies(InlineLexer $lexer) : bool
Parameters
- $lexer : InlineLexer
Return values
boolapply()
public
apply(BlockContext $blockContext, InlineLexer $lexer) : AbstractLinkInlineNode|null
Parameters
- $blockContext : BlockContext
- $lexer : InlineLexer
Return values
AbstractLinkInlineNode|nullgetPriority()
public
getPriority() : int
Return values
intcreateReference()
protected
createReference(BlockContext $blockContext, string $reference[, string|null $text = null ][, bool $registerLink = true ]) : AbstractLinkInlineNode
Parameters
- $blockContext : BlockContext
- $reference : string
- $text : string|null = null
- $registerLink : bool = true
Return values
AbstractLinkInlineNoderollback()
protected
rollback(InlineLexer $lexer, int $position) : void
Parameters
- $lexer : InlineLexer
- $position : int
createAnonymousReference()
private
createAnonymousReference(BlockContext $blockContext, string $link) : AbstractLinkInlineNode
Parameters
- $blockContext : BlockContext
- $link : string