TempNode.d.ts 701 B

12345678910111213141516171819202122232425
  1. import { Node } from './Node';
  2. import { NodeBuilder } from './NodeBuilder';
  3. export interface TempNodeParams {
  4. shared?: boolean;
  5. unique?: boolean;
  6. }
  7. export class TempNode extends Node {
  8. constructor( type: string, params?: TempNodeParams );
  9. shared: boolean;
  10. unique: boolean;
  11. label: string | undefined;
  12. build( builder: NodeBuilder, output: string, uuid?: string, ns?: string ): string;
  13. getShared( builder: NodeBuilder, output: string ): boolean;
  14. getUnique( builder: NodeBuilder, output: string ): boolean;
  15. setLabel( name: string ): this;
  16. getLabel( builder: NodeBuilder ): string;
  17. getUuid( unique: boolean ): string;
  18. getTemp( builder: NodeBuilder, uuid: string ): string | undefined;
  19. }