Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ReconWriter<I, V>

Type parameters

  • I

  • V

Hierarchy

Index

Constructors

Methods

Constructors

constructor

Methods

Abstract isAttr

  • isAttr(item: I): boolean
  • Parameters

    • item: I

    Returns boolean

isBlockSafe

  • isBlockSafe(items: Cursor<I>): boolean
  • Parameters

    Returns boolean

Abstract isBool

  • isBool(item: I): boolean
  • Parameters

    • item: I

    Returns boolean

Abstract isExpression

  • isExpression(item: I): boolean
  • Parameters

    • item: I

    Returns boolean

Abstract isExtant

  • isExtant(item: I): boolean
  • Parameters

    • item: I

    Returns boolean

Abstract isField

  • isField(item: I): boolean
  • Parameters

    • item: I

    Returns boolean

isIdent

  • isIdent(value: string | I): boolean
  • Parameters

    • value: string | I

    Returns boolean

isMarkupSafe

  • isMarkupSafe(items: Cursor<I>): boolean
  • Parameters

    Returns boolean

Abstract isNum

  • isNum(item: I): boolean
  • Parameters

    • item: I

    Returns boolean

Abstract isRecord

  • isRecord(item: I): boolean
  • Parameters

    • item: I

    Returns boolean

Abstract isSlot

  • isSlot(item: I): boolean
  • Parameters

    • item: I

    Returns boolean

Abstract isText

  • isText(item: I): boolean
  • Parameters

    • item: I

    Returns boolean

Abstract isValue

  • isValue(item: I): boolean
  • Parameters

    • item: I

    Returns boolean

Abstract item

  • item(value: V): I
  • Parameters

    • value: V

    Returns I

Abstract items

  • Parameters

    • item: I

    Returns Cursor<I>

Abstract key

  • key(item: I): V
  • Parameters

    • item: I

    Returns V

Abstract precedence

  • precedence(item: I): number
  • Parameters

    • item: I

    Returns number

sizeOfAbsent

  • sizeOfAbsent(): number
  • Returns number

sizeOfAttr

  • sizeOfAttr(key: V, value: V): number
  • Parameters

    • key: V
    • value: V

    Returns number

sizeOfBlock

  • sizeOfBlock(item: I): number
  • sizeOfBlock(items: Cursor<I>, inBlock: boolean, inMarkup: boolean): number
  • Parameters

    • item: I

    Returns number

  • Parameters

    • items: Cursor<I>
    • inBlock: boolean
    • inMarkup: boolean

    Returns number

Abstract sizeOfBlockItem

  • sizeOfBlockItem(item: I): number
  • Parameters

    • item: I

    Returns number

Abstract sizeOfBlockValue

  • sizeOfBlockValue(value: V): number
  • Parameters

    • value: V

    Returns number

sizeOfBool

  • sizeOfBool(value: boolean): number
  • Parameters

    • value: boolean

    Returns number

sizeOfChildrenSelector

  • sizeOfChildrenSelector(then: V): number
  • Parameters

    • then: V

    Returns number

sizeOfConditionalOperator

  • sizeOfConditionalOperator(ifTerm: I, thenTerm: I, elseTerm: I, precedence: number): number
  • Parameters

    • ifTerm: I
    • thenTerm: I
    • elseTerm: I
    • precedence: number

    Returns number

sizeOfData

  • sizeOfData(length: number): number
  • Parameters

    • length: number

    Returns number

sizeOfDescendantsSelector

  • sizeOfDescendantsSelector(then: V): number
  • Parameters

    • then: V

    Returns number

sizeOfExtant

  • sizeOfExtant(): number
  • Returns number

sizeOfFilterSelector

  • sizeOfFilterSelector(predicate: V, then: V): number
  • Parameters

    • predicate: V
    • then: V

    Returns number

sizeOfGetAttrSelector

  • sizeOfGetAttrSelector(key: V, then: V): number
  • Parameters

    • key: V
    • then: V

    Returns number

sizeOfGetItemSelector

  • sizeOfGetItemSelector(index: V, then: V): number
  • Parameters

    • index: V
    • then: V

    Returns number

sizeOfGetSelector

  • sizeOfGetSelector(key: V, then: V): number
  • Parameters

    • key: V
    • then: V

    Returns number

sizeOfIdentitySelector

  • sizeOfIdentitySelector(): number
  • Returns number

sizeOfInfixOperator

  • sizeOfInfixOperator(lhs: I, operator: string, rhs: I, precedence: number): number
  • Parameters

    • lhs: I
    • operator: string
    • rhs: I
    • precedence: number

    Returns number

sizeOfInvokeOperator

  • sizeOfInvokeOperator(func: V, args: V): number
  • Parameters

    • func: V
    • args: V

    Returns number

Abstract sizeOfItem

  • sizeOfItem(item: I): number
  • Parameters

    • item: I

    Returns number

sizeOfKeysSelector

  • sizeOfKeysSelector(then: V): number
  • Parameters

    • then: V

    Returns number

sizeOfLambdaFunc

  • sizeOfLambdaFunc(bindings: V, template: V): number
  • Parameters

    • bindings: V
    • template: V

    Returns number

sizeOfLiteralSelector

  • sizeOfLiteralSelector(item: I, then: V): number
  • Parameters

    • item: I
    • then: V

    Returns number

sizeOfMarkupText

  • sizeOfMarkupText(item: string | I): number
  • Parameters

    • item: string | I

    Returns number

sizeOfNum

  • sizeOfNum(value: number): number
  • Parameters

    • value: number

    Returns number

sizeOfPrefixOperator

  • sizeOfPrefixOperator(operator: string, rhs: I, precedence: number): number
  • Parameters

    • operator: string
    • rhs: I
    • precedence: number

    Returns number

sizeOfPrimary

  • sizeOfPrimary(value: V): number
  • Parameters

    • value: V

    Returns number

sizeOfRecord

  • sizeOfRecord(item: I): number
  • Parameters

    • item: I

    Returns number

sizeOfSlot

  • sizeOfSlot(key: V, value: V): number
  • Parameters

    • key: V
    • value: V

    Returns number

sizeOfText

  • sizeOfText(value: string): number
  • Parameters

    • value: string

    Returns number

Abstract sizeOfThen

  • sizeOfThen(then: V): number
  • Parameters

    • then: V

    Returns number

sizeOfThenChildrenSelector

  • sizeOfThenChildrenSelector(then: V): number
  • Parameters

    • then: V

    Returns number

sizeOfThenDescendantsSelector

  • sizeOfThenDescendantsSelector(then: V): number
  • Parameters

    • then: V

    Returns number

sizeOfThenFilterSelector

  • sizeOfThenFilterSelector(predicate: V, then: V): number
  • Parameters

    • predicate: V
    • then: V

    Returns number

sizeOfThenGetAttrSelector

  • sizeOfThenGetAttrSelector(key: V, then: V): number
  • Parameters

    • key: V
    • then: V

    Returns number

sizeOfThenGetItemSelector

  • sizeOfThenGetItemSelector(index: V, then: V): number
  • Parameters

    • index: V
    • then: V

    Returns number

sizeOfThenGetSelector

  • sizeOfThenGetSelector(key: V, then: V): number
  • Parameters

    • key: V
    • then: V

    Returns number

sizeOfThenIdentitySelector

  • sizeOfThenIdentitySelector(): number
  • Returns number

sizeOfThenKeysSelector

  • sizeOfThenKeysSelector(then: V): number
  • Parameters

    • then: V

    Returns number

sizeOfThenLiteralSelector

  • sizeOfThenLiteralSelector(item: I, then: V): number
  • Parameters

    • item: I
    • then: V

    Returns number

sizeOfThenValuesSelector

  • sizeOfThenValuesSelector(then: V): number
  • Parameters

    • then: V

    Returns number

sizeOfUint32

  • sizeOfUint32(value: number): number
  • Parameters

    • value: number

    Returns number

sizeOfUint64

  • sizeOfUint64(value: number): number
  • Parameters

    • value: number

    Returns number

Abstract sizeOfValue

  • sizeOfValue(value: V): number
  • Parameters

    • value: V

    Returns number

sizeOfValuesSelector

  • sizeOfValuesSelector(then: V): number
  • Parameters

    • then: V

    Returns number

Abstract string

  • string(item: I): string
  • Parameters

    • item: I

    Returns string

Abstract value

  • value(item: I): V
  • Parameters

    • item: I

    Returns V

writeAbsent

  • writeAbsent(output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    Returns Writer<unknown, unknown>

writeAttr

  • writeAttr(key: V, value: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • key: V
    • value: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeBlock

  • writeBlock(item: I, output: Output<unknown>): Writer<unknown, unknown>
  • writeBlock(items: Cursor<I>, output: Output<unknown>, inBlock: boolean, inMarkup: boolean): Writer<unknown, unknown>
  • Parameters

    • item: I
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

  • Parameters

    • items: Cursor<I>
    • output: Output<unknown>
    • inBlock: boolean
    • inMarkup: boolean

    Returns Writer<unknown, unknown>

Abstract writeBlockItem

  • writeBlockItem(item: I, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • item: I
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

Abstract writeBlockValue

  • writeBlockValue(value: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • value: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeBool

  • writeBool(value: boolean, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • value: boolean
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeChildrenSelector

  • writeChildrenSelector(then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeConditionalOperator

  • writeConditionalOperator(ifTerm: I, thenTerm: I, elseTerm: I, precedence: number, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • ifTerm: I
    • thenTerm: I
    • elseTerm: I
    • precedence: number
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeData

  • writeData(value: undefined | Uint8Array, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • value: undefined | Uint8Array
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeDescendantsSelector

  • writeDescendantsSelector(then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeExtant

  • writeExtant(output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    Returns Writer<unknown, unknown>

writeFilterSelector

  • writeFilterSelector(predicate: V, then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • predicate: V
    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeGetAttrSelector

  • writeGetAttrSelector(key: V, then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • key: V
    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeGetItemSelector

  • writeGetItemSelector(index: V, then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • index: V
    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeGetSelector

  • writeGetSelector(key: V, then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • key: V
    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeIdentitySelector

  • writeIdentitySelector(output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    Returns Writer<unknown, unknown>

writeInfixOperator

  • writeInfixOperator(lhs: I, operator: string, rhs: I, precedence: number, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • lhs: I
    • operator: string
    • rhs: I
    • precedence: number
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeInvokeOperator

  • writeInvokeOperator(func: V, args: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • func: V
    • args: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

Abstract writeItem

  • writeItem(item: I, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • item: I
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeKeysSelector

  • writeKeysSelector(then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeLambdaFunc

  • writeLambdaFunc(bindings: V, template: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • bindings: V
    • template: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeLiteralSelector

  • writeLiteralSelector(item: I, then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • item: I
    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeMarkupText

  • writeMarkupText(item: string | I, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • item: string | I
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeNum

  • writeNum(value: number, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • value: number
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writePrefixOperator

  • writePrefixOperator(operator: string, rhs: I, precedence: number, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • operator: string
    • rhs: I
    • precedence: number
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writePrimary

  • writePrimary(value: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • value: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeRecord

  • writeRecord(item: I, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • item: I
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeSlot

  • writeSlot(key: V, value: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • key: V
    • value: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeText

  • writeText(value: string, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • value: string
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

Abstract writeThen

  • writeThen(then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeThenChildrenSelector

  • writeThenChildrenSelector(then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeThenDescendantsSelector

  • writeThenDescendantsSelector(then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeThenFilterSelector

  • writeThenFilterSelector(predicate: V, then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • predicate: V
    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeThenGetAttrSelector

  • writeThenGetAttrSelector(key: V, then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • key: V
    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeThenGetItemSelector

  • writeThenGetItemSelector(index: V, then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • index: V
    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeThenGetSelector

  • writeThenGetSelector(key: V, then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • key: V
    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeThenIdentitySelector

  • writeThenIdentitySelector(output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    Returns Writer<unknown, unknown>

writeThenKeysSelector

  • writeThenKeysSelector(then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeThenLiteralSelector

  • writeThenLiteralSelector(item: I, then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • item: I
    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeThenValuesSelector

  • writeThenValuesSelector(then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeUint32

  • writeUint32(value: number, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • value: number
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeUint64

  • writeUint64(value: number, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • value: number
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

Abstract writeValue

  • writeValue(value: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • value: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

writeValuesSelector

  • writeValuesSelector(then: V, output: Output<unknown>): Writer<unknown, unknown>
  • Parameters

    • then: V
    • output: Output<unknown>

    Returns Writer<unknown, unknown>

Generated using TypeDoc