@tripsnek/tmf
Version:
TypeScript Modeling Framework - A TypeScript port of the Eclipse Modeling Framework (EMF)
22 lines • 989 B
TypeScript
import { EClass } from './eclass.js';
import { EParameter } from './eparameter.js';
import { EList } from './elist.js';
import { ETypedElement } from './etyped-element.js';
/**
* Represents an operation (method) that can be defined on a class.
* Operations have parameters, return types, and are identified by
* a unique ID within their containing class.
*/
export interface EOperation extends ETypedElement {
/** Returns the unique ID of this operation within its containing class. */
getOperationID(): number;
/** Sets the unique ID of this operation within its containing class. */
setOperationID(operationID: number): void;
/** Returns the class that contains this operation. */
getEContainingClass(): EClass;
/** Sets the class that contains this operation. */
setEContainingClass(owner: EClass): void;
/** Returns the list of parameters for this operation. */
getEParameters(): EList<EParameter>;
}
//# sourceMappingURL=eoperation.d.ts.map