Movatterモバイル変換


[0]ホーム

URL:


  • Preparing search index...
  • The search index is not available
bbcode-ast

Class TextNode

A node that represents a chunk of text. This node isnot a tag.

Hierarchy (view full)

Constructors

constructor

Properties

Readonlyname

name:"TextNode" = "TextNode"

The name of the node.

OverridesBaseNode.name

text

text:string

The text of the node.

Methods

clone

nodeTree

  • nodeTree(indentWidth?):string
  • Converts the node into a tree-like overview of all children.

    Parameters

    • indentWidth:number = 2

      The number of spaces to indent the output. Defaults to2.

    Returnsstring

    The tree-like overview of all children.

    Inherited fromBaseNode.nodeTree

ProtectednodeTreeChildren

  • nodeTreeChildren(indentWidth):string
  • Gets the children of the node tree.

    Parameters

    • indentWidth:number

      The number of spaces to indent the output.

    Returnsstring

    The children of the node tree.

    OverridesBaseNode.nodeTreeChildren

ProtectednodeTreeHeading

toBBCode

toString

  • toString():string
  • Converts the node into a textual representation of the node as BBCode.A node should return the exact same string as the input toParser.parse providedindented isfalse.

    Returnsstring

    The textual representation of the node as BBCode.

    OverridesBaseNode.toString

Settings

Member Visibility

Theme

On This Page

Generated usingTypeDoc


[8]ページ先頭

©2009-2025 Movatter.jp