Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ResourceStack<T>

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Private isActive

isActive: boolean

Private origins

origins: ResourceOrigin<T>[] = []

A list of all source directories.

Private ressourceClass

ressourceClass: ResourceClass<T>

Private ressourceRegExp

ressourceRegExp: RegExp

Methods

activate

  • activate(): boolean

addOrigin

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

    Parameters

    • name: string
    • path: string
    • Optional ignoreErrors: boolean

    Returns void

deactivate

  • deactivate(): boolean

getAllResources

getOrigin

getResource

  • getResource(name: string): T

getResourceClass

getRessourceRegExp

  • getRessourceRegExp(): RegExp

hasOrigin

  • hasOrigin(name: string): boolean

removeAllOrigins

  • removeAllOrigins(): void

removeOrigin

  • removeOrigin(name: string): void

Generated using TypeDoc