src/lib/myScript/output/generic/abstractResult.ts
Abstract result
constructor(obj: AbstractResultParameter)
|
getInstanceId |
getInstanceId()
|
Get instance id
Returns:
string
|
getDocument |
getDocument()
|
Get document
Returns:
TextDocument
|
instanceId |
instanceId: |
result |
result: |
import { TextDocument } from '../text/textDocument';
export interface AbstractResultParameter {
instanceId?: string;
result?: TextDocument
}
/**
* Abstract result
*
* @export
* @class AbstractResult
*/
export class AbstractResult {
instanceId: string;
result: TextDocument;
constructor(obj?: AbstractResultParameter) {
this.instanceId = obj && obj.instanceId;
}
/**
* Get instance id
*
* @method getInstanceId
* @returns {String}
*/
getInstanceId(): string {
return this.instanceId;
};
/**
* Get document
*
* @method getDocument
* @returns {TextDocument|ShapeDocument|MathDocument|MusicDocument|AnalyzerDocument}
*/
getDocument(): TextDocument {
return this.result;
};
}