import BaseNode from '../common/BaseNode'; import type AnnotationProperty from './AnnotationProperty__'; /** * 注解 */ export declare class Annotation extends BaseNode { /** 类名 */ static readonly ConceptName: string; /** * 是否为抽象类 * 抽象类不能产生 concept: string */ static isAbstract: boolean; /** 继承链 */ static readonly inheritanceChain: string[]; /** * 产品概念 */ readonly concept: 'Annotation'; /** * 注解标识 */ name: string; /** * 注解描述 */ description: string; /** * 注解属性 */ properties: Array; /** * 可以应用到的概念 */ applyTo: Array<'Entity' | 'Logic' | 'View' | 'ViewElement'>; /** * @param source 需要合并的部分参数 */ constructor(source?: Partial); static from(source: any, parentNode?: any, parentKey?: string): Annotation; getAnnotationPropertyExistingNames(excludedList?: Array): string[]; getAnnotationPropertyUniqueName(name?: string): string; /** * 插入注解属性 * @internal * @param name 注解属性名称,如果不填会自动生成一个唯一名称 */ _insertAnnotationPropertyAt(name: string, index: number): AnnotationProperty; /** * 插入注解属性 * @internal * @param annotationPropertyOptions 注解属性参数 */ _insertAnnotationPropertyAt(annotationPropertyOptions: Partial, index: number): AnnotationProperty; /** * 插入注解属性 * @internal * @param annotationProperty 已有的注解属性实例 */ _insertAnnotationPropertyAt(annotationProperty: AnnotationProperty, index: number): AnnotationProperty; /** * 插入注解属性 * @param name 注解属性名称,如果不填会自动生成一个唯一名称 */ insertAnnotationPropertyAt(name: string, index: number): AnnotationProperty; /** * 插入注解属性 * @param annotationPropertyOptions 注解属性参数 */ insertAnnotationPropertyAt(annotationPropertyOptions: Partial, index: number): AnnotationProperty; /** * 插入注解属性 * @param annotationProperty 已有的注解属性实例 */ insertAnnotationPropertyAt(annotationProperty: AnnotationProperty, index: number): AnnotationProperty; /** * 添加注解属性 * @internal * @param name 注解属性名称,如果不填会自动生成一个唯一名称 */ _addAnnotationProperty(name?: string): AnnotationProperty; /** * 添加注解属性 * @internal * @param annotationPropertyOptions 注解属性参数 */ _addAnnotationProperty(annotationPropertyOptions: Partial): AnnotationProperty; /** * 添加注解属性 * @internal * @param annotationProperty 已有的注解属性实例 */ _addAnnotationProperty(annotationProperty: AnnotationProperty): AnnotationProperty; /** * 添加注解属性 * @internal * @param name 注解属性名称,如果不填会自动生成一个唯一名称 */ addAnnotationProperty(name?: string): AnnotationProperty; /** * 添加注解属性 * @param annotationPropertyOptions 注解属性参数 */ addAnnotationProperty(annotationPropertyOptions: Partial): AnnotationProperty; /** * 添加注解属性 * @param annotationProperty 已有的注解属性实例 */ addAnnotationProperty(annotationProperty: AnnotationProperty): AnnotationProperty; /** * 删除注解属性 * @param name 注解属性名称 */ removeAnnotationProperty(name: string): void; /** * 删除注解属性 * @param annotationProperty 已有的注解属性实例 */ removeAnnotationProperty(annotationProperty: AnnotationProperty): void; transToApplyAnno(annoprop?: any): { concept: string; annotationNamespace: any; annotationName: any; name: any; arguments: any; }; } export default Annotation; //# sourceMappingURL=Annotation__.d.ts.map