Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EnumConverter

Hierarchy

Implements

Index

Constructors

constructor

Properties

componentName

componentName: string

The name of this component as set by the @Component decorator.

priority

priority: number = 0

The priority this converter should be executed with. A higher priority means the converter will be applied earlier.

supports

supports: SyntaxKind[] = [ts.SyntaxKind.EnumDeclaration]

List of supported TypeScript syntax kinds.

Accessors

application

owner

Methods

Protected bubble

convert

  • Analyze the given enumeration declaration node and create a suitable reflection.

    Parameters

    • context: Context

      The context object describing the current state the converter is in.

    • node: EnumDeclaration

      The enumeration declaration node that should be analyzed.

    Returns Reflection

    The resulting reflection or NULL.

Private convertMember

  • Analyze the given enumeration member node and create a suitable reflection.

    Parameters

    • context: Context

      The context object describing the current state the converter is in.

    • node: EnumMember

      The enumeration member node that should be analyzed.

    Returns Reflection

    The resulting reflection or NULL.

convertType

  • Convert the given enumeration type to its type reflection.

    This is a type based converter with no node based equivalent.

    enum MyEnum { One, Two, Three }
    let someValue: MyEnum;
    

    Parameters

    • context: Context

      The context object describing the current state the converter is in.

    • type: Type

      The enumeration type that should be converted.

    Returns Type

    The type reflection representing the given enumeration type.

getOptionDeclarations

Protected initialize

  • initialize(): void

listenTo

listenToOnce

off

  • off(): any
  • off(eventMap: EventMap, context?: any): any
  • off(name: string, callback?: EventCallback, context?: any): any

on

  • on(eventMap: EventMap, context?: any): any
  • on(eventMap: EventMap, callback?: EventCallback, context?: any, priority?: number): any
  • on(name: string, callback: EventCallback, context?: any, priority?: number): any

once

  • once(eventMap: EventMap, context?: any): any
  • once(name: string, callback: EventCallback, context?: any, priority?: any): any

stopListening

supportsType

  • supportsType(context: Context, type: Type): boolean

trigger

Generated using TypeDoc