A collection of factory methods which may be used to create concrete instances of the interfaces that constitute the AST.

Clients should not extend, implement or mix-in this class.

Constructors

AstFactory()

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

Creates autolink with link as a target.

autolinkEmail(String email) AutolinkEmail

Creates email autolink with email as a target.

baseCompositeInline(Iterable<InlineNode> contents) BaseCompositeInline

Creates base composite inline.

blockquote(Iterable<BlockNode> contents) Blockquote

Creates blockquote.

classAttribute(String className) ClassAttribute

Creates attribute with className class.

code(CodeUnitsList contents, int fenceSize, ExtendedAttributes attributes) Code

Creates inline code

codeBlock(Iterable<String> contents, Attributes attributes) CodeBlock

Creates code block.

document(Iterable<BlockNode> contents) Document

Creates document.

emphasis(Iterable<InlineNode> contents) Emphasis

Creates emphasis.

extendedAttributes(Iterable<Attribute> attributes) ExtendedAttributes

Creates extended attributes.

hardLineBreak() HardLineBreak

Creates hard line break.

heading(BaseInline contents, int level, ExtendedAttributes attributes) Heading

Creates heading with level and contents as contents.

htmlRawBlock(String contents) HtmlRawBlock

Creates HTML raw block.

htmlRawInline(String contents) HtmlRawInline

Creates HTML raw inline.

identifierAttribute(String identifier) IdentifierAttribute

Creates Identifier attribute.

infoString(String language) InfoString

Creates infostring attribute.

inlineImage(Iterable<InlineNode> contents, Target target, ExtendedAttributes attributes) InlineImage

Creates inline image.

Creates inline link.

keyValueAttribute(String key, String value) KeyValueAttribute

Creates key-value attribute.

linkReference(String reference, Target target, ExtendedAttributes attributes) LinkReference

Creates link reference block.

listItem(Iterable<BlockNode> contents) ListItem

Creates list item.

nodeList<E extends AstNode>(AstNode owner, [ Iterable<E> elements ]) NodeList<E>

Returns a newly created list of nodes such that all of the nodes that are added to the list will have their parent set to the given owner. The list will initially be populated with the given elements.

nonBreakableSpace(int amount) NonBreakableSpace

Creates sequence of amount non breakable spaces.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
orderedList(Iterable<ListItem> items, bool tight, int startIndex, IndexSeparator indexSeparator) OrderedList

Creates ordered list.

para(BaseInline contents) Para

Creates paragraph.

reference(String reference, Target target) Reference

Creates reference.

referenceImage(Iterable<InlineNode> contents, Reference reference, ExtendedAttributes attributes) ReferenceImage

Creates reference image.

Creates reference link.

smartChar(SmartCharType type) SmartChar

Creates smart char.

softLineBreak() SoftLineBreak

Creates soft line break.

space(int amount) Space

Creates sequence of amount spaces.

str(CodeUnitsList contents) Str

Creates inline str element.

strikeout(Iterable<InlineNode> contents) Strikeout

Creates strikeout element.

strong(Iterable<InlineNode> contents) Strong

Creates strong emphasis.

subscript(Iterable<InlineNode> contents) Subscript

Creates subscript inline.

superscript(Iterable<InlineNode> contents) Superscript

Creates superscript inline.

tab(int amount) Tab

Creates sequence of amount tabs.

table(Iterable<Alignment> alignment, BaseInline caption, Iterable<TableCell> headers, Iterable<Iterable<TableCell>> contents) Table

Creates table

tableCell(Iterable<BlockNode> contents) TableCell

Creates table cell.

target(String link, String title) Target

Creates target for link and image.

texMathDisplay(String contents) TexMathDisplay

Creates display TeX math.

texMathInline(String contents) TexMathInline

Creates inline TeX math.

texRawBlock(String contents) TexRawBlock

Creates TeX raw block.

thematicBreak() ThematicBreak

Creates thematic break.

toString() → String

Returns a string representation of this object.

inherited
unorderedList(Iterable<ListItem> items, bool tight, BulletType bulletType) UnorderedList

Creates unordered list.