File

src/lib/myScript/output/generic/abstractResult.ts

Description

Abstract result

Constructor

constructor(obj: AbstractResultParameter)

Methods

getInstanceId
getInstanceId()

Get instance id

Returns: string
getDocument
getDocument()

Get document

Returns: TextDocument

Properties

instanceId
instanceId: string
result
result: TextDocument
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;
	};
}

results matching ""

    No results matching ""