UNPKG

935 BTypeScriptView Raw
1import _F from './java/File';
2export default class AbstractGenerator {
3 static SEARCH_PATHS: string[];
4 writeToFile(filename: any, contents: any): void;
5 readTemplate(name: any): string;
6 getTemplateReader(name: any): string | undefined;
7 /**
8 * Get the template file path with template dir prepended, and use the
9 * library template if exists.
10 *
11 * Resolve from embeddedTemplate/library, than embeddedTemplate, then templateDir
12 *
13 * @param config Codegen config
14 * @param templateFile Template file
15 * @return String Full template file path
16 */
17 getFullTemplateFile(config: any, templateFile: any): any;
18 readResourceContents(resourceFilePath: any): string | undefined;
19 embeddedTemplateExists(name: any): boolean;
20 getCPResourcePath(name: any): any;
21 protected _resolveFilePath(...paths: any[]): any;
22 protected _resolveFile(...paths: any[]): _F | undefined;
23}