Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ResourceStack<T>

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Private isActive

isActive: boolean = false

Private origins

origins: ResourceOrigin<T>[] = []

A list of all source directories.

Private resourceClass

resourceClass: ResourceClass<T>

Private resourceRegExp

resourceRegExp: RegExp

Methods

activate

  • activate(): boolean

addOrigin

  • addOrigin(name: string, path: string, ignoreErrors?: undefined | false | true): void
  • Add a source directory to the resource stack.

    Parameters

    • name: string
    • path: string
    • Optional ignoreErrors: undefined | false | true

    Returns void

deactivate

  • deactivate(): boolean

getAllResources

getOrigin

getResource

  • getResource(name: string): T | undefined

getResourceClass

getResourceRegExp

  • getResourceRegExp(): RegExp

hasOrigin

  • hasOrigin(name: string): boolean

removeAllOrigins

  • removeAllOrigins(): void

removeOrigin

  • removeOrigin(name: string): void

Generated using TypeDoc