UNPKG

ui5plugin-parser

Version:
45 lines (44 loc) 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractBaseClass = void 0; class AbstractBaseClass { constructor(className, parser) { this.methods = []; this.fields = []; this.properties = []; this.aggregations = []; this.events = []; this.associations = []; this.interfaces = []; this.parentClassNameDotNotation = ""; this.deprecated = false; this.description = ""; this.className = className; this.classExists = true; this.abstract = false; this.parser = parser; } getMembers() { return [...this.methods, ...this.fields]; } generateTypeValues(type) { let typeValues = []; if (type === "boolean") { typeValues = [ { text: "true", description: "boolean true" }, { text: "false", description: "boolean false" } ]; } else if (type === "sap.ui.core.URI") { typeValues = this.parser.icons.icons.map(icon => ({ text: icon, description: icon })); } else if (type === "string") { // const currentComponentName = UI5Plugin.getInstance().fileReader.getComponentNameOfAppInCurrentWorkspaceFolder(); // if (currentComponentName) { // typeValues = ResourceModelData.resourceModels[currentComponentName]; // } } return typeValues; } } exports.AbstractBaseClass = AbstractBaseClass;