Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Printer

印刷器类。 这个类除了需要储存概念列表还需要什么?

Hierarchy

  • Printer

Index

Constructors

Properties

defaultRenderers: DefaultRendererhDict
firstClassConcepts: FirstClassConceptDict
renderers: RendererDict
secondClassConcepts: SecondClassConceptDict

Methods

  • 查询一个一级概念。

    Parameters

    • type: AllConceptTypes

      查找的节点类型。

    • name: string

      查找的概念名称。 如果没有找到,就返回undefined

    Returns FirstClassConcept

  • 这个函数直接从一个节点查询渲染器。

    Parameters

    Returns PrinterRenderer<Node>

  • 查询一个渲染器。

    Parameters

    • type: AllNodeTypes

      查找的节点类型。

    • Optional name: string

      查找的概念名称。 如果type == "paragraph" || "text",那么name将会被忽略。 反之,如果type != "paragraph" && type != "text",那么name必须提供。

    Returns PrinterRenderer<Node>

  • 查询一个二级概念。

    Parameters

    • type: AllConceptTypes

      查找的节点类型。

    • name: string

      查找的概念名称。 如果没有找到,就返回undefined

    Returns SecondClassConcept

  • 这个函数将节点的参数列表还原成一级概念的参数列表。

    Parameters

    Returns ProcessedParameterList

Generated using TypeDoc