Skip to content

@sora-soft/framework


@sora-soft/framework / StackUtility

Class: StackUtility ​

Defined in: packages/framework/src/utility/Utility.ts:219

Constructors ​

Constructor ​

ts
new StackUtility(): StackUtility;

Returns ​

StackUtility

Methods ​

findNearestStack() ​

ts
static findNearestStack(out): StackFrame;

Defined in: packages/framework/src/utility/Utility.ts:241

Parameters ​

ParameterType
outstring

Returns ​

StackFrame


formatFileName() ​

ts
static formatFileName(filePath): string;

Defined in: packages/framework/src/utility/Utility.ts:262

Parameters ​

ParameterType
filePathstring

Returns ​

string


getInstantiationStack() ​

ts
static getInstantiationStack(targetConstructor): StackFrame;

Defined in: packages/framework/src/utility/Utility.ts:253

Parameters ​

ParameterType
targetConstructorFunction

Returns ​

StackFrame


getStack() ​

ts
static getStack(): string[];

Defined in: packages/framework/src/utility/Utility.ts:220

Returns ​

string[]


getStackFile() ​

ts
static getStackFile(depth): string;

Defined in: packages/framework/src/utility/Utility.ts:234

Parameters ​

ParameterType
depthnumber

Returns ​

string


getStackPosition() ​

ts
static getStackPosition(depth): string;

Defined in: packages/framework/src/utility/Utility.ts:227

Parameters ​

ParameterType
depthnumber

Returns ​

string

基于 WTFPL 许可发布