UNPKG

@accordproject/concerto-core

Version:

Core Implementation for the Concerto Modeling Language

43 lines (42 loc) 1.39 kB
/** * * Provides access to the structure of transactions, assets and participants. * * @class * @memberof module:concerto-core */ declare class Introspector { modelManager: any; /** * Create the Introspector. * @param {ModelManager} modelManager - the ModelManager that backs this Introspector */ constructor(modelManager: any); /** * Visitor design pattern * @param {Object} visitor - the visitor * @param {Object} parameters - the parameter * @return {Object} the result of visiting or null */ accept(visitor: any, parameters: any): any; /** * Returns all the class declarations for the business network. * @return {ClassDeclaration[]} the array of class declarations */ getClassDeclarations(): never[]; /** * Returns the class declaration with the given fully qualified name. * Throws an error if the class declaration does not exist. * @param {String} fullyQualifiedTypeName - the fully qualified name of the type * @return {ClassDeclaration} the class declaration * @throws {Error} if the class declaration does not exist */ getClassDeclaration(fullyQualifiedTypeName: any): any; /** * Returns the backing ModelManager * @return {ModelManager} the backing ModelManager * @private */ getModelManager(): any; } export = Introspector;