udm-rules-vue 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -0
- package/dist/EventBus.d.ts +70 -0
- package/dist/FileDeployPackageBuilder.d.ts +35 -0
- package/dist/FileSystemEventBus.d.ts +6 -0
- package/dist/FileUtils.d.ts +51 -0
- package/dist/RedoUndoManager.d.ts +15 -0
- package/dist/RuleFileWatcher.d.ts +14 -0
- package/dist/ServerRequestResponse.d.ts +29 -0
- package/dist/Url.d.ts +18 -0
- package/dist/WebviewCollection.d.ts +12 -0
- package/dist/ajax.d.ts +2 -0
- package/dist/assets/builtin/BasicObject.bom +22 -0
- package/dist/assets/builtin/BasicObject_zh_CN.voc +9 -0
- package/dist/assets/builtin/Constants.bom +9 -0
- package/dist/assets/builtin/Constants_zh_CN.voc +6 -0
- package/dist/assets/builtin/StaticMethod.bom +118 -0
- package/dist/assets/builtin/StaticMethod_zh_CN.voc +176 -0
- package/dist/assets/css/index.css +1 -0
- package/dist/authToken.d.ts +2 -0
- package/dist/bom/AttributeDialog.vue.d.ts +6 -0
- package/dist/bom/BomEditor.vue.d.ts +8 -0
- package/dist/bom/BomEditorComponent.vue.d.ts +3 -0
- package/dist/bom/BomWebEditor.d.ts +1 -0
- package/dist/bom/Category.vue.d.ts +6 -0
- package/dist/bom/CategoryDialog.vue.d.ts +6 -0
- package/dist/bom/ClassEditor.vue.d.ts +9 -0
- package/dist/bom/ClassMemberDialog.vue.d.ts +6 -0
- package/dist/bom/CustomProperty.vue.d.ts +7 -0
- package/dist/bom/DocumentationDialog.vue.d.ts +6 -0
- package/dist/bom/Domain.vue.d.ts +7 -0
- package/dist/bom/DomainDialog.vue.d.ts +6 -0
- package/dist/bom/EditTermDialog.vue.d.ts +6 -0
- package/dist/bom/FieldEditor.vue.d.ts +12 -0
- package/dist/bom/MethodEditor.vue.d.ts +11 -0
- package/dist/bom/MethodParameter.vue.d.ts +7 -0
- package/dist/bom/MethodParameterDialog.vue.d.ts +3 -0
- package/dist/bom/NameDialog.vue.d.ts +6 -0
- package/dist/bom/PureWebBomEditor.vue.d.ts +41 -0
- package/dist/bom/bomDeserialize.d.ts +28 -0
- package/dist/bom/bomRefactor.d.ts +2 -0
- package/dist/bom/bomSerialize.d.ts +2 -0
- package/dist/bom/model.d.ts +118 -0
- package/dist/bom/sync/SyncDialog.vue.d.ts +6 -0
- package/dist/bom/sync/VocabularySettleDialog.vue.d.ts +6 -0
- package/dist/bom/sync/bomCompare.d.ts +37 -0
- package/dist/bom/sync/sync.d.ts +6 -0
- package/dist/bom/sync/vocabularySettle.d.ts +3 -0
- package/dist/bom/vocabulary.d.ts +4 -0
- package/dist/bom/webview/BomDocument.d.ts +70 -0
- package/dist/bom/webview/BomEditorProvider.d.ts +39 -0
- package/dist/bom/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/brl/PureWebRuleEditor.vue.d.ts +56 -0
- package/dist/brl/RuleDocument.d.ts +69 -0
- package/dist/brl/RuleEditor.vue.d.ts +17 -0
- package/dist/brl/RuleEditorComponent.vue.d.ts +34 -0
- package/dist/brl/RuleEditorProvider.d.ts +30 -0
- package/dist/brl/RuleUtils.d.ts +12 -0
- package/dist/brl/RuleWebEditor.d.ts +1 -0
- package/dist/brl/edit/PropertyChangeEdit.d.ts +4 -0
- package/dist/brl/edit/ScriptChangeEdit.d.ts +4 -0
- package/dist/brl/webviewHTMLContent.d.ts +8 -0
- package/dist/command/CompileAndPackageCommand.d.ts +3 -0
- package/dist/command/CompileRuleFilesCommand.d.ts +20 -0
- package/dist/command/CopyLibFilesCommand.d.ts +5 -0
- package/dist/command/DeployRuleFileCommand.d.ts +3 -0
- package/dist/command/OpenCompiledFileCommand.d.ts +3 -0
- package/dist/command/PackageRuleFilesCommand.d.ts +5 -0
- package/dist/command/RefactorUuidCommand.d.ts +3 -0
- package/dist/command/ReloadBomFilesCommand.d.ts +3 -0
- package/dist/command/ServerUrlConfigCommand.d.ts +4 -0
- package/dist/command/UpdateUuidCommand.d.ts +3 -0
- package/dist/compile/DecisionTableCompiler.d.ts +43 -0
- package/dist/compile/DecisionTableRulePreview.d.ts +5 -0
- package/dist/compile/ExpressionBuilder.d.ts +24 -0
- package/dist/compile/FileCompiler.d.ts +6 -0
- package/dist/compile/FlowCompiler.d.ts +18 -0
- package/dist/compile/PureWebCompiler.d.ts +1 -0
- package/dist/compile/RuleCompiler.d.ts +7 -0
- package/dist/compile/compileRuleScript.d.ts +5 -0
- package/dist/completion/ActionCompletionBuilder.d.ts +4 -0
- package/dist/completion/BatchConditionCompletionBuilder.d.ts +4 -0
- package/dist/completion/CompletionBuilder.d.ts +157 -0
- package/dist/completion/DatatypeAssertor.d.ts +16 -0
- package/dist/completion/ExpressionCompletionBuilder.d.ts +7 -0
- package/dist/completion/ObjectNameCompletionBuilder.d.ts +5 -0
- package/dist/completion/ObjectVariableAndMethodCompletion.d.ts +12 -0
- package/dist/completion/RuleKeyCompletionBuilder.d.ts +7 -0
- package/dist/completion/builder/BatchDeclareCompletionDataBuilder.d.ts +2 -0
- package/dist/completion/builder/CurrentItemCompletionDataBuilder.d.ts +9 -0
- package/dist/completion/builder/EnumCompletionItemBuilder.d.ts +7 -0
- package/dist/completion/builder/MethodCompletionDataBuilder.d.ts +8 -0
- package/dist/completion/builder/VariableCompletionItemBuilder.d.ts +9 -0
- package/dist/completion/configure/ArithOperatorHintBuilder.d.ts +12 -0
- package/dist/completion/configure/EnumHintBuilder.d.ts +8 -0
- package/dist/completion/configure/HintConfigBuilder.d.ts +52 -0
- package/dist/completion/configure/LiteralHintBuilder.d.ts +11 -0
- package/dist/completion/configure/MethodHintBuilder.d.ts +18 -0
- package/dist/completion/configure/ObjectHintBuilder.d.ts +10 -0
- package/dist/completion/configure/PlaceholderHintBuilder.d.ts +11 -0
- package/dist/completion/configure/VariableHintBuilder.d.ts +11 -0
- package/dist/completion/hint/HintCompletionBuilder.d.ts +11 -0
- package/dist/completion/hint/MethodCompletionBuilder.d.ts +9 -0
- package/dist/completion/hint/ObjectCompletionBuilder.d.ts +8 -0
- package/dist/completion/hint/ObjectNameCompletionBuilder.d.ts +7 -0
- package/dist/completion/hint/PlaceHolderCompletionBuilder.d.ts +5 -0
- package/dist/completion/hint/VariableCompletionBuilder.d.ts +7 -0
- package/dist/components/datatype/DatatypeSelectUtils.d.ts +13 -0
- package/dist/components/datatype/SelectDatatypeDialog.vue.d.ts +6 -0
- package/dist/components/form/TagInput.vue.d.ts +13 -0
- package/dist/components/menu/Item.vue.d.ts +9 -0
- package/dist/components/menu/Menu.vue.d.ts +8 -0
- package/dist/components/menu/MultiItem.vue.d.ts +12 -0
- package/dist/components/menu/events.d.ts +4 -0
- package/dist/components/menu/types.d.ts +15 -0
- package/dist/components/message/Dialog.vue.d.ts +36 -0
- package/dist/components/message/Message.vue.d.ts +8 -0
- package/dist/components/message/events.d.ts +19 -0
- package/dist/components/process/Connection.d.ts +196 -0
- package/dist/components/process/Menu.d.ts +12 -0
- package/dist/components/process/MenuItemFactory.d.ts +5 -0
- package/dist/components/process/MergeGroup.d.ts +12 -0
- package/dist/components/process/Process.d.ts +108 -0
- package/dist/components/process/ProcessNode.d.ts +340 -0
- package/dist/components/process/Tooltip.d.ts +20 -0
- package/dist/components/process/colors.d.ts +2 -0
- package/dist/components/process/events.d.ts +10 -0
- package/dist/components/process/types.d.ts +11 -0
- package/dist/components/select/Select.vue.d.ts +21 -0
- package/dist/components/select/SelectItem.d.ts +7 -0
- package/dist/components/splitter/HoizontalSplitter.vue.d.ts +34 -0
- package/dist/components/splitter/VerticalSplitter.vue.d.ts +43 -0
- package/dist/components/tab/Tab.vue.d.ts +27 -0
- package/dist/components/tree/TreeNode.vue.d.ts +31 -0
- package/dist/connect/Connect.vue.d.ts +3 -0
- package/dist/connect/ConnectComponent.vue.d.ts +3 -0
- package/dist/connect/ConnectProvider.d.ts +6 -0
- package/dist/connect/ConnectWebEditor.d.ts +1 -0
- package/dist/connect/webviewHTMLContent.d.ts +8 -0
- package/dist/content.d.ts +25 -0
- package/dist/dispose.d.ts +9 -0
- package/dist/dta/DecisionTableComponent.vue.d.ts +37 -0
- package/dist/dta/DecisionTableDeserialize.d.ts +3 -0
- package/dist/dta/DecisionTableEditor.vue.d.ts +20 -0
- package/dist/dta/DecisionTableSerialize.d.ts +2 -0
- package/dist/dta/DecisionTableUtils.d.ts +19 -0
- package/dist/dta/DecisionTableWebEditor.d.ts +1 -0
- package/dist/dta/DynamicEditableController.d.ts +46 -0
- package/dist/dta/PureWebDecisionTableEditor.vue.d.ts +59 -0
- package/dist/dta/component/ColumnNameBuilder.d.ts +2 -0
- package/dist/dta/component/DecisionTable.d.ts +136 -0
- package/dist/dta/component/DecisionTableCrossHeader.d.ts +11 -0
- package/dist/dta/component/DecisionTableHeader.d.ts +30 -0
- package/dist/dta/component/DecisionTableRowIndicate.d.ts +27 -0
- package/dist/dta/component/contentContextMenuEvent.d.ts +3 -0
- package/dist/dta/component/edit/ContentChangeEdit.d.ts +11 -0
- package/dist/dta/component/edit/DeleteHeaderEdit.d.ts +7 -0
- package/dist/dta/component/edit/DeleteRowEdit.d.ts +7 -0
- package/dist/dta/component/edit/HeaderChangeEdit.d.ts +7 -0
- package/dist/dta/component/edit/HeaderWidthChangeEdit.d.ts +9 -0
- package/dist/dta/component/edit/InsertHeaderEdit.d.ts +7 -0
- package/dist/dta/component/edit/InsertRowEdit.d.ts +7 -0
- package/dist/dta/component/edit/RowHeightChangeEdit.d.ts +9 -0
- package/dist/dta/component/edit/RowMoveEdit.d.ts +7 -0
- package/dist/dta/component/edit/StyleChangeEdit.d.ts +16 -0
- package/dist/dta/component/headerContextMenuEvent.d.ts +2 -0
- package/dist/dta/component/operationContextMenuBuilder.d.ts +4 -0
- package/dist/dta/component/operator/ColumnDelete.d.ts +10 -0
- package/dist/dta/component/operator/ColumnInsert.d.ts +14 -0
- package/dist/dta/component/operator/HeaderChange.d.ts +15 -0
- package/dist/dta/component/operator/MergeSelectedCells.d.ts +8 -0
- package/dist/dta/component/operator/ModelInitializer.d.ts +18 -0
- package/dist/dta/component/operator/RowDelete.d.ts +14 -0
- package/dist/dta/component/operator/RowInsert.d.ts +32 -0
- package/dist/dta/component/operator/SplitSelectedCell.d.ts +7 -0
- package/dist/dta/component/operator/SubHeaderBuilder.d.ts +18 -0
- package/dist/dta/component/operator/styleImpose.d.ts +3 -0
- package/dist/dta/dialog/CellStyleDialog.vue.d.ts +28 -0
- package/dist/dta/dialog/EditColumnDialog.vue.d.ts +8 -0
- package/dist/dta/dialog/Style.vue.d.ts +11 -0
- package/dist/dta/dialog/events.d.ts +2 -0
- package/dist/dta/model/ActionItem.d.ts +12 -0
- package/dist/dta/model/Cell.d.ts +59 -0
- package/dist/dta/model/ConditionItem.d.ts +37 -0
- package/dist/dta/model/DecisionTableModel.d.ts +89 -0
- package/dist/dta/model/Definition.d.ts +31 -0
- package/dist/dta/model/HeaderCell.d.ts +16 -0
- package/dist/dta/model/Item.d.ts +31 -0
- package/dist/dta/model/ItemCell.d.ts +46 -0
- package/dist/dta/model/Partition.d.ts +20 -0
- package/dist/dta/model/ResourceData.d.ts +7 -0
- package/dist/dta/model/Style.d.ts +19 -0
- package/dist/dta/model/SubHeader.d.ts +15 -0
- package/dist/dta/webview/DecisionTableDocument.d.ts +68 -0
- package/dist/dta/webview/DecisionTableEditorProvider.d.ts +31 -0
- package/dist/dta/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/dtr/DecisionTreeComponent.vue.d.ts +39 -0
- package/dist/dtr/DecisionTreeEditor.vue.d.ts +21 -0
- package/dist/dtr/DecisionTreeWebEditor.d.ts +1 -0
- package/dist/dtr/PureWebDecisionTreeEditor.vue.d.ts +61 -0
- package/dist/dtr/designer/ActionInsert.d.ts +14 -0
- package/dist/dtr/designer/ConditionDelete.d.ts +5 -0
- package/dist/dtr/designer/ConditionInsert.d.ts +16 -0
- package/dist/dtr/designer/ConfigDialog.vue.d.ts +6 -0
- package/dist/dtr/designer/LabelDialog.vue.d.ts +6 -0
- package/dist/dtr/designer/NodeConnection.d.ts +21 -0
- package/dist/dtr/designer/PlaceholderEditableController.d.ts +66 -0
- package/dist/dtr/designer/TextBlock.d.ts +20 -0
- package/dist/dtr/designer/TreeDesigner.d.ts +75 -0
- package/dist/dtr/designer/TreeNode.d.ts +53 -0
- package/dist/dtr/designer/layout.d.ts +16 -0
- package/dist/dtr/designer/treeNodeBuilder.d.ts +18 -0
- package/dist/dtr/webview/DecisionTreeDocument.d.ts +68 -0
- package/dist/dtr/webview/DecisionTreeEditorProvider.d.ts +31 -0
- package/dist/dtr/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/extension.d.ts +10 -0
- package/dist/flowFileLoader.d.ts +7 -0
- package/dist/grammar/CaretTokenDetection.d.ts +123 -0
- package/dist/grammar/DatatypeBuilder.d.ts +16 -0
- package/dist/grammar/LexerTokenConsumer.d.ts +27 -0
- package/dist/grammar/MethodHelper.d.ts +43 -0
- package/dist/grammar/ParserException.d.ts +3 -0
- package/dist/grammar/ParserHelper.d.ts +80 -0
- package/dist/grammar/SearchMethod.d.ts +15 -0
- package/dist/grammar/TokenAssertor.d.ts +34 -0
- package/dist/grammar/bom/BomLexer.d.ts +55 -0
- package/dist/grammar/bom/BomParser.d.ts +656 -0
- package/dist/grammar/bom/BomParserListener.d.ts +492 -0
- package/dist/grammar/bom/BomParserVisitor.d.ts +298 -0
- package/dist/grammar/diagnostic/ExpressionSemanticErrorBuild.d.ts +4 -0
- package/dist/grammar/diagnostic/GrammarDiagnostic.d.ts +20 -0
- package/dist/grammar/diagnostic/GrammarErrorListener.d.ts +20 -0
- package/dist/grammar/diagnostic/SemanticDiagnostic.d.ts +25 -0
- package/dist/grammar/parser/BoostRuleLexer.d.ts +21 -0
- package/dist/grammar/parser/BoostRuleParser.d.ts +57 -0
- package/dist/grammar/parser/MethodSearchForParser.d.ts +16 -0
- package/dist/grammar/rule/RuleLexer.d.ts +89 -0
- package/dist/grammar/rule/RuleParser.d.ts +537 -0
- package/dist/grammar/rule/RuleParserListener.d.ts +436 -0
- package/dist/grammar/rule/RuleParserVisitor.d.ts +264 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +161109 -0
- package/dist/index.umd.js +887 -0
- package/dist/java-C_jlkwoG.js +238 -0
- package/dist/model/BO.d.ts +281 -0
- package/dist/model/BomFilesReader.d.ts +13 -0
- package/dist/model/Datatype.d.ts +84 -0
- package/dist/model/NavigationTree.d.ts +207 -0
- package/dist/model/PureWebBomFilesReader.d.ts +13 -0
- package/dist/model/RuleProperty.d.ts +6 -0
- package/dist/model/VarFilesReader.d.ts +9 -0
- package/dist/model/VocFilesReader.d.ts +77 -0
- package/dist/model/VscodeBomFilesReader.d.ts +2 -0
- package/dist/model/VscodeBuiltinObjectsLoader.d.ts +14 -0
- package/dist/model/WebBuiltinObjectsLoader.d.ts +13 -0
- package/dist/model/WebViewBomFilesReader.d.ts +1 -0
- package/dist/model/datatypeCompatibility.d.ts +2 -0
- package/dist/model/domainValidate.d.ts +5 -0
- package/dist/model/expression/ArithExpression.d.ts +17 -0
- package/dist/model/expression/BatchExpression.d.ts +14 -0
- package/dist/model/expression/CharExpression.d.ts +6 -0
- package/dist/model/expression/CurrentObjectExpression.d.ts +9 -0
- package/dist/model/expression/DateExpression.d.ts +6 -0
- package/dist/model/expression/DateTimeExpression.d.ts +6 -0
- package/dist/model/expression/EnumExpression.d.ts +8 -0
- package/dist/model/expression/Expression.d.ts +8 -0
- package/dist/model/expression/MethodExpression.d.ts +12 -0
- package/dist/model/expression/NumberExpression.d.ts +6 -0
- package/dist/model/expression/ObjectExpression.d.ts +7 -0
- package/dist/model/expression/PlaceholderExpression.d.ts +20 -0
- package/dist/model/expression/PredefineExpression.d.ts +25 -0
- package/dist/model/expression/RuleExpression.d.ts +18 -0
- package/dist/model/expression/StringExpression.d.ts +7 -0
- package/dist/model/expression/TimeExpression.d.ts +6 -0
- package/dist/model/expression/VariableExpression.d.ts +10 -0
- package/dist/model/expression/compile/commonMethodScriptCompile.d.ts +4 -0
- package/dist/model/expression/compile/compareMethodScriptCompile.d.ts +4 -0
- package/dist/monaco/ExpressionFinder.d.ts +32 -0
- package/dist/monaco/MonacoCodeEditor.d.ts +34 -0
- package/dist/monaco/MonacoCompletionProvider.d.ts +10 -0
- package/dist/monaco/MonacoDefinitionProvider.d.ts +7 -0
- package/dist/monaco/MonacoDiagnosticsBuilder.d.ts +21 -0
- package/dist/monaco/MonacoEditorOpener.d.ts +4 -0
- package/dist/monaco/MonacoHoverProvider.d.ts +16 -0
- package/dist/monaco/MonacoJavaEditor.d.ts +2 -0
- package/dist/monaco/MonacoLanguageConfiguration.d.ts +3 -0
- package/dist/monaco/MonacoLinkProvider.d.ts +7 -0
- package/dist/monaco/MonacoSemanticTokensProvider.d.ts +11 -0
- package/dist/monaco/MonacoTokenStyleRules.d.ts +3 -0
- package/dist/monaco/MonacoWorkerInitialize.d.ts +2 -0
- package/dist/monaco/ReadonlyMonacoCodeEditor.d.ts +6 -0
- package/dist/monaco/buildTargetPartExpressionSemantics.d.ts +31 -0
- package/dist/monaco/customMonaco.d.ts +2 -0
- package/dist/monaco/parseTargetPartRuleScript.d.ts +13 -0
- package/dist/projectprops/Category.vue.d.ts +8 -0
- package/dist/projectprops/Parameter.vue.d.ts +8 -0
- package/dist/projectprops/ProjectProperties.d.ts +33 -0
- package/dist/projectprops/ProjectPropertiesEditor.d.ts +1 -0
- package/dist/projectprops/ProjectPropertiesEditor.vue.d.ts +8 -0
- package/dist/projectprops/ProjectPropertiesEditorComponent.vue.d.ts +3 -0
- package/dist/projectprops/PureWebProjectPropertiesEditor.vue.d.ts +41 -0
- package/dist/projectprops/webview/ProjectPropertiesDocument.d.ts +67 -0
- package/dist/projectprops/webview/ProjectPropertiesEditorProvider.d.ts +26 -0
- package/dist/projectprops/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/quicktest/Log.d.ts +49 -0
- package/dist/quicktest/LogDashboard.vue.d.ts +8 -0
- package/dist/quicktest/LogDialog.vue.d.ts +6 -0
- package/dist/quicktest/OutputDashboard.vue.d.ts +7 -0
- package/dist/quicktest/PasteJsonDialog.vue.d.ts +6 -0
- package/dist/quicktest/QuickTestDialog.vue.d.ts +7 -0
- package/dist/quicktest/TestUtils.d.ts +42 -0
- package/dist/quicktest/VariableForm.vue.d.ts +11 -0
- package/dist/refactor/DecisionTableFileRefactor.d.ts +6 -0
- package/dist/refactor/FileRefactor.d.ts +63 -0
- package/dist/refactor/FlowFileRefactor.d.ts +7 -0
- package/dist/refactor/RuleFileRefactor.d.ts +5 -0
- package/dist/rfl/FlowProcess.d.ts +56 -0
- package/dist/rfl/FlowProperties.d.ts +7 -0
- package/dist/rfl/MenuFactory.d.ts +7 -0
- package/dist/rfl/RuleFlowEditor.d.ts +0 -0
- package/dist/rfl/config/Common.d.ts +6 -0
- package/dist/rfl/config/Enums.d.ts +9 -0
- package/dist/rfl/config/TaskAction.d.ts +29 -0
- package/dist/rfl/config/Url.d.ts +1 -0
- package/dist/rfl/data/ActionNodeData.d.ts +44 -0
- package/dist/rfl/data/BranchNodeData.d.ts +12 -0
- package/dist/rfl/data/ConnectionData.d.ts +60 -0
- package/dist/rfl/data/ForkNodeData.d.ts +12 -0
- package/dist/rfl/data/JoinNodeData.d.ts +12 -0
- package/dist/rfl/data/NodeData.d.ts +27 -0
- package/dist/rfl/data/RuleFile.d.ts +67 -0
- package/dist/rfl/data/RuleNodeData.d.ts +174 -0
- package/dist/rfl/data/StartNodeData.d.ts +38 -0
- package/dist/rfl/data/StopNodeData.d.ts +38 -0
- package/dist/rfl/data/SubflowNodeData.d.ts +40 -0
- package/dist/rfl/data/TaskNodeData.d.ts +17 -0
- package/dist/rfl/definition/ConnectionDef.d.ts +31 -0
- package/dist/rfl/definition/JsonUtils.d.ts +67 -0
- package/dist/rfl/definition/ProcessDef.d.ts +191 -0
- package/dist/rfl/definition/ProcessNodeDef.d.ts +145 -0
- package/dist/rfl/definition/node/ActionTaskNodeDef.d.ts +74 -0
- package/dist/rfl/definition/node/BasicNodeDef.d.ts +15 -0
- package/dist/rfl/definition/node/BranchNodeDef.d.ts +40 -0
- package/dist/rfl/definition/node/ConnectionFactoryDef.d.ts +10 -0
- package/dist/rfl/definition/node/FlowConnectionDef.d.ts +58 -0
- package/dist/rfl/definition/node/FlowProcessNodeDef.d.ts +98 -0
- package/dist/rfl/definition/node/ForkNodeDef.d.ts +40 -0
- package/dist/rfl/definition/node/JoinNodeDef.d.ts +40 -0
- package/dist/rfl/definition/node/NodeType.d.ts +70 -0
- package/dist/rfl/definition/node/RuleTaskNodeDef.d.ts +62 -0
- package/dist/rfl/definition/node/StartTaskNodeDef.d.ts +71 -0
- package/dist/rfl/definition/node/StopTaskNodeDef.d.ts +71 -0
- package/dist/rfl/definition/node/SubflowTaskNodeDef.d.ts +55 -0
- package/dist/rfl/definition/node/TaskNodeDef.d.ts +31 -0
- package/dist/rfl/designer/Designer.vue.d.ts +38 -0
- package/dist/rfl/designer/DesignerComponent.vue.d.ts +59 -0
- package/dist/rfl/designer/ProcessUtils.d.ts +6 -0
- package/dist/rfl/designer/PureWebFlowEditor.vue.d.ts +81 -0
- package/dist/rfl/designer/editor/ConnectionEditor.vue.d.ts +8 -0
- package/dist/rfl/designer/editor/FlowEditor.vue.d.ts +3 -0
- package/dist/rfl/designer/editor/NodeEditor.vue.d.ts +3 -0
- package/dist/rfl/designer/editor/NodeList.vue.d.ts +9 -0
- package/dist/rfl/designer/editor/ProcessEditor.vue.d.ts +8 -0
- package/dist/rfl/en.d.ts +14 -0
- package/dist/rfl/events.d.ts +21 -0
- package/dist/rfl/node/ActionTaskNode.d.ts +22 -0
- package/dist/rfl/node/BasicNode.d.ts +8 -0
- package/dist/rfl/node/BranchNode.d.ts +48 -0
- package/dist/rfl/node/ConnectionFactory.d.ts +10 -0
- package/dist/rfl/node/FlowConnection.d.ts +45 -0
- package/dist/rfl/node/FlowProcessNode.d.ts +128 -0
- package/dist/rfl/node/ForkNode.d.ts +54 -0
- package/dist/rfl/node/JoinNode.d.ts +54 -0
- package/dist/rfl/node/NodeUtils.d.ts +15 -0
- package/dist/rfl/node/ProcessNodeFactory.d.ts +41 -0
- package/dist/rfl/node/RuleTaskNode.d.ts +76 -0
- package/dist/rfl/node/StartTaskNode.d.ts +74 -0
- package/dist/rfl/node/StopTaskNode.d.ts +84 -0
- package/dist/rfl/node/SubflowTaskNode.d.ts +70 -0
- package/dist/rfl/node/TaskNode.d.ts +42 -0
- package/dist/rfl/props/ActionNodeProperty.vue.d.ts +12 -0
- package/dist/rfl/props/BranchNodeProperty.vue.d.ts +10 -0
- package/dist/rfl/props/ConnectionProperty.vue.d.ts +5 -0
- package/dist/rfl/props/FlowFileSelectDialog.vue.d.ts +6 -0
- package/dist/rfl/props/ForkNodeProperty.vue.d.ts +10 -0
- package/dist/rfl/props/JoinNodeProperty.vue.d.ts +10 -0
- package/dist/rfl/props/RuleFileSelectDialog.vue.d.ts +8 -0
- package/dist/rfl/props/RuleNodeProperty.vue.d.ts +11 -0
- package/dist/rfl/props/StartNodeProperty.vue.d.ts +10 -0
- package/dist/rfl/props/StopNodeProperty.vue.d.ts +10 -0
- package/dist/rfl/props/SubflowNodeProperty.vue.d.ts +11 -0
- package/dist/rfl/utils/Msg.d.ts +5 -0
- package/dist/rfl/utils/Utils.d.ts +43 -0
- package/dist/rfl/utils/XMLUtils.d.ts +59 -0
- package/dist/rfl/webview/RuleFlowDocument.d.ts +68 -0
- package/dist/rfl/webview/RuleFlowEditorProvider.d.ts +33 -0
- package/dist/rfl/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/rfl/zh.d.ts +14 -0
- package/dist/sca/webview/ScoreCardDocument.d.ts +68 -0
- package/dist/sca/webview/ScoreCardEditorProvider.d.ts +31 -0
- package/dist/sca/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/server/TestBomFilesLoader.d.ts +13 -0
- package/dist/server/TestFlowFileLoader.d.ts +22 -0
- package/dist/server/server.d.ts +1 -0
- package/dist/sync/ProjectSync.vue.d.ts +6 -0
- package/dist/sync/ProjectSyncDocument.d.ts +67 -0
- package/dist/sync/ProjectSyncEditor.vue.d.ts +3 -0
- package/dist/sync/ProjectSyncEditorComponent.vue.d.ts +3 -0
- package/dist/sync/ProjectSyncEditorProvider.d.ts +28 -0
- package/dist/sync/ProjectSyncEntryBuilder.d.ts +65 -0
- package/dist/sync/ProjectSyncWebEditor.d.ts +1 -0
- package/dist/sync/SyncEntry.d.ts +11 -0
- package/dist/sync/SyncFileUitls.d.ts +16 -0
- package/dist/sync/tree/TreeNode.vue.d.ts +31 -0
- package/dist/sync/webviewHTMLContent.d.ts +8 -0
- package/dist/tst/PredictFormDialog.vue.d.ts +6 -0
- package/dist/tst/PureWebTstEditor.vue.d.ts +41 -0
- package/dist/tst/ResponseDialog.vue.d.ts +6 -0
- package/dist/tst/TstEditor.vue.d.ts +8 -0
- package/dist/tst/TstEditorComponent.vue.d.ts +3 -0
- package/dist/tst/TstUtils.d.ts +30 -0
- package/dist/tst/TstWebEditor.d.ts +1 -0
- package/dist/tst/webview/TstDocument.d.ts +67 -0
- package/dist/tst/webview/TstEditorProvider.d.ts +30 -0
- package/dist/tst/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/utils.d.ts +104 -0
- package/dist/var/PureWebVariableEditor.vue.d.ts +41 -0
- package/dist/var/VariableEditor.vue.d.ts +8 -0
- package/dist/var/VariableEditorComponent.vue.d.ts +3 -0
- package/dist/var/VariableModel.d.ts +22 -0
- package/dist/var/VariableRefactorDialog.vue.d.ts +3 -0
- package/dist/var/VariableWebEditor.d.ts +1 -0
- package/dist/var/webview/VariableDocument.d.ts +67 -0
- package/dist/var/webview/VariableEditorProvider.d.ts +38 -0
- package/dist/var/webview/webviewHTMLContent.d.ts +8 -0
- package/dist/view&document.d.ts +9 -0
- package/dist/webviewFiles.d.ts +42 -0
- package/dist/webviewFilesOperator.d.ts +24 -0
- package/package.json +88 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { FieldDefine, MethodDefine, ObjectDefine, VariableDefine } from './BO';
|
|
2
|
+
import { Datatype } from './Datatype';
|
|
3
|
+
export declare const THIS_REGEX: RegExp;
|
|
4
|
+
export declare const BO_LOADED = "BO_LOADED";
|
|
5
|
+
/**
|
|
6
|
+
* 语法解析时使用的BOM对象导航树,里面包含对BOM对象本身,也就是变量,以及其属性和方法的树结构定义,同时还有枚举类型的树结构定义
|
|
7
|
+
*/
|
|
8
|
+
declare class NavigationTree {
|
|
9
|
+
private nodeMap;
|
|
10
|
+
/**
|
|
11
|
+
* 用来存储那些有operator描述的方法定义,这些方法定义可以用在决策表条件单元格中或决策树连线里,用来重定义条件。
|
|
12
|
+
* key为方法在voc文件中定义的operatorExpression,value为方法定义对象
|
|
13
|
+
*/
|
|
14
|
+
methodOperatorExpressionMap: Map<string, MethodDefine>;
|
|
15
|
+
/**
|
|
16
|
+
* 用来存储那些有operator属性值的静态方法定义,这些静态方法定义可以用在决策表条件单元格中,用来改变单元格绑定的条件
|
|
17
|
+
*/
|
|
18
|
+
operatorStaticMethodDefines: MethodDefine[];
|
|
19
|
+
/**
|
|
20
|
+
* 用来存在业务对象名称,专门用于词法分析时对业务对象进行匹配,在填充完所有的业务对象后,
|
|
21
|
+
* 需要对这个集合进行排序,排序方式为按长度阡序排列,以保证词法解析时找到的第一个对象就是匹配到的对象
|
|
22
|
+
*/
|
|
23
|
+
businessObjectNames: string[];
|
|
24
|
+
/**
|
|
25
|
+
* 用来存放所有的业务对象的占位符,key为具体占位符值,value为对应对象的{@link Datatype}对象
|
|
26
|
+
*/
|
|
27
|
+
businessObjectPlaceHolderMap: Map<string, Datatype>;
|
|
28
|
+
/**
|
|
29
|
+
* key为对对应业务对象的完整类名
|
|
30
|
+
*/
|
|
31
|
+
businessObjectNodesClassNameMap: Map<string, ObjectNodeType>;
|
|
32
|
+
/**
|
|
33
|
+
* key为对对应业务对象的 verbalization
|
|
34
|
+
*/
|
|
35
|
+
businessObjectNodesVerbalizationMap: Map<string, ObjectNodeType>;
|
|
36
|
+
/**
|
|
37
|
+
* 用于存储变量的入口节点Map,key为具体的以单引号包裹的变量描述名,value为对应的{@link VariableData}对象
|
|
38
|
+
*/
|
|
39
|
+
variableVerbaliztionMap: Map<string, VariableData>;
|
|
40
|
+
/**
|
|
41
|
+
* 用于存储变量的入口节点Map,key为具体的以单引号包裹的变量名,value为对应的{@link VariableData}对象
|
|
42
|
+
*/
|
|
43
|
+
variableNameMap: Map<string, VariableData>;
|
|
44
|
+
/**
|
|
45
|
+
* 保存所有静态方法(导航类型/赋值类型)根节点(含以参数开头和以描述开头的方法),以便于在词法解析时使用。
|
|
46
|
+
* 目前该集合主要用于词法解析,但在解析时需要找到最长匹配的方法描述符,所以从性能角度考虑,需要在所有方法添加进去之后对其进行排序,排序按描述符长度进行
|
|
47
|
+
*/
|
|
48
|
+
allMethodNodes: NavigationNode[];
|
|
49
|
+
/**
|
|
50
|
+
* 保存普通的不以参数开头的字段赋值类型的静态方法根节点保存在这个Map中,以便于在词法解析时可以快速根据第一个方法描述符找到所有可能的方法
|
|
51
|
+
*/
|
|
52
|
+
normalActionMethodsMap: Map<string, NavigationNode[]>;
|
|
53
|
+
/**
|
|
54
|
+
* 保存普通的不以参数开头的导航类型的静态方法根节点保存在这个Map中,以便于在词法解析时可以快速根据第一个方法描述符找到所有可能的方法
|
|
55
|
+
*/
|
|
56
|
+
normalNavigationMethodsMap: Map<string, NavigationNode[]>;
|
|
57
|
+
/**
|
|
58
|
+
* 用来存放那些以参数开头的赋值类型的静态方法
|
|
59
|
+
*/
|
|
60
|
+
parameterStartActionMethods: NavigationNode[];
|
|
61
|
+
/**
|
|
62
|
+
* 用来存放那些以参数开头的赋值类型的静态方法,这里忽略其第一个参数,以第一个描述符作为key
|
|
63
|
+
*/
|
|
64
|
+
parameterStartActionMethodsMap: Map<string, NavigationNode[]>;
|
|
65
|
+
/**
|
|
66
|
+
* 用来存放那些以参数开头的导航类型的静态方法,比如比较用的大于、小于、等于之类
|
|
67
|
+
*/
|
|
68
|
+
parameterStartNavigationMethods: NavigationNode[];
|
|
69
|
+
/**
|
|
70
|
+
* 用来存放那些以参数开头的导航类型的静态方法,比如比较用的大于、小于、等于之类,这里忽略其第一个参数,以第一个描述符作为key
|
|
71
|
+
*/
|
|
72
|
+
parameterStartMethodsMap: Map<string, NavigationNode[]>;
|
|
73
|
+
/**
|
|
74
|
+
* 存储enum类型(静态属性)的Map,key为这个枚举类型的类型对应的类名,value为对应字段的FieldDefine。
|
|
75
|
+
* 这种类型的值只用于填充方法参数,或者赋值字段属性(赋值类型的静态方法)的导航类型。
|
|
76
|
+
*/
|
|
77
|
+
enumClassNameMap: Map<string, FieldDefine[]>;
|
|
78
|
+
/**
|
|
79
|
+
* 用来存储所有的枚举类型的 verbalization,key为枚举属性对应的verbalization,value为枚举属性对象,该集合主要用于语法解析,让词法解析器可以快速判断当前Token是否为一个枚举类型的静态属性。
|
|
80
|
+
*/
|
|
81
|
+
enumVerbalizationMap: Map<string, FieldDefine>;
|
|
82
|
+
private clean;
|
|
83
|
+
/**
|
|
84
|
+
* 根据给出的预定义变量名,返回可能存在的预定义变量对应的对象信息
|
|
85
|
+
* @param variableName 预定义变量名
|
|
86
|
+
* @returns 返回可能存在的预定义变量对应的对象信息
|
|
87
|
+
*/
|
|
88
|
+
findObjectByPredefineVariable(variableName: string, avaliablePredefineVariablesMap: Map<string, Datatype>): {
|
|
89
|
+
datatype: Datatype;
|
|
90
|
+
objectNodeType: ObjectNodeType | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
addVariableDefine(variableDefine: VariableDefine): void;
|
|
93
|
+
private buildVariableNodes;
|
|
94
|
+
addObjectDefines(objectDefines: ObjectDefine[], variableDefines: VariableDefine[]): void;
|
|
95
|
+
/**
|
|
96
|
+
* 将一个业务对象中的所有枚举字段,添加到枚举字段集合中,便于在解析及代码提示时使用
|
|
97
|
+
* @param objectDefine 业务对象定义
|
|
98
|
+
* @param enumVerbalizationSet 一个用来防止重复枚举 verbalization 的Set
|
|
99
|
+
*/
|
|
100
|
+
private buildObjectDefineEnumFields;
|
|
101
|
+
/**
|
|
102
|
+
* 将当前方法导航根节点添加到静态方法导航根节点数组中,以便于在词法解析时使用
|
|
103
|
+
* @param rootMethodNode 根方法导航节点
|
|
104
|
+
* @param forAction 是否是动作方法,如果不是则为导航用方法
|
|
105
|
+
*/
|
|
106
|
+
private buildMethods;
|
|
107
|
+
private nodeContainsMethodOrField;
|
|
108
|
+
private buildFieldChildrenDatatypesMap;
|
|
109
|
+
private addObjectDefine;
|
|
110
|
+
private buildMethodDefineOperatorExpression;
|
|
111
|
+
/**
|
|
112
|
+
* 将类型为对象的属性最后一个节点与目标对象的子节点链接起来
|
|
113
|
+
* @param fieldDefineNavigationNodes 对象属性导航节点数组
|
|
114
|
+
*/
|
|
115
|
+
private linkFieldDefineNavigationNodes;
|
|
116
|
+
private buildFieldDefineDatatype;
|
|
117
|
+
private createMethodTreeNode;
|
|
118
|
+
private createStaticMethodTreeNode;
|
|
119
|
+
/**
|
|
120
|
+
* 如果当前方法是一个列表方法(方法名为list,只有一个集合参数且参数类型为对象类型,且返回值也是一个集合对象类型),
|
|
121
|
+
* 则创建一个由大括号、对象类型以及逗号组成的循环链表,通过这个循环链表就可以实现导航时由对象和逗号组成的无限输入。
|
|
122
|
+
*
|
|
123
|
+
* 注意:在创建这个循环链表时,不能缓存节点,也就是说它是独立于其它节点存在的,以免导致错误。
|
|
124
|
+
* @param method 对象方法定义
|
|
125
|
+
* @param parentNode 父节点
|
|
126
|
+
* @returns 返回当前方法定义是否为一个内置的数组类型的方法定义
|
|
127
|
+
*/
|
|
128
|
+
private buildCircleListMethod;
|
|
129
|
+
/**
|
|
130
|
+
* 创建字段描述的导航树节点
|
|
131
|
+
* @param field 字段定义对象
|
|
132
|
+
* @param fullClassName 字段所属对象类名
|
|
133
|
+
* @param parentNode 父节点
|
|
134
|
+
* @returns 返回最后一个描述节点
|
|
135
|
+
*/
|
|
136
|
+
private createFieldTreeNode;
|
|
137
|
+
private createActionTreeNode;
|
|
138
|
+
private buildKey;
|
|
139
|
+
private newDescriptorNode;
|
|
140
|
+
}
|
|
141
|
+
export interface NavigationNode {
|
|
142
|
+
element: any;
|
|
143
|
+
children: NavigationNode[];
|
|
144
|
+
key?: string;
|
|
145
|
+
}
|
|
146
|
+
export declare class DescriptorNode implements NavigationNode {
|
|
147
|
+
/**
|
|
148
|
+
* 记录element对应的去空格后的值,用于在语法解析时查询方法使用
|
|
149
|
+
*/
|
|
150
|
+
descriptor: string;
|
|
151
|
+
/**
|
|
152
|
+
* 记录当前节点原始值,包含空格在内的所有字符
|
|
153
|
+
*/
|
|
154
|
+
element: string;
|
|
155
|
+
/**
|
|
156
|
+
* 标识当前节点是否为方法参数,如果是那么这个属性就存储对应参数的Datatype
|
|
157
|
+
*/
|
|
158
|
+
parameterDatatype?: Datatype;
|
|
159
|
+
/**
|
|
160
|
+
* 父节点的key+当前节点的label
|
|
161
|
+
*/
|
|
162
|
+
key: string;
|
|
163
|
+
/**
|
|
164
|
+
* 目标对象集合,这里是一个Set对象,因为在构建导航树时,节点是共享的,共享的节点可能只有label相同,
|
|
165
|
+
* 但对应的数据类型和目标对象不同,同时为了更快检查当前对象是否在这个节点中存在,所以这里使用Set保存目标对象,
|
|
166
|
+
*/
|
|
167
|
+
targets: Set<ObjectDefine | FieldDefine | MethodDefine>;
|
|
168
|
+
/**
|
|
169
|
+
* 表示绑定当前节点的对象或方法的描述信息到这个节点已经完成,那么就将目标对象设置到这个属性上,而不放置在上面的targets属性中
|
|
170
|
+
*/
|
|
171
|
+
target: MethodDefine | undefined;
|
|
172
|
+
children: NavigationNode[];
|
|
173
|
+
constructor(element: string, key: string, target?: FieldDefine | MethodDefine | undefined);
|
|
174
|
+
}
|
|
175
|
+
export declare const buildTip: (set: Set<ObjectDefine | FieldDefine | MethodDefine>) => string;
|
|
176
|
+
export declare class VariableNamePlaceholderNode implements NavigationNode {
|
|
177
|
+
element: any;
|
|
178
|
+
children: NavigationNode[];
|
|
179
|
+
key?: string | undefined;
|
|
180
|
+
static readonly this = "this";
|
|
181
|
+
static readonly element: string;
|
|
182
|
+
}
|
|
183
|
+
export declare class ObjectDefineNode implements NavigationNode {
|
|
184
|
+
element: ObjectDefine;
|
|
185
|
+
children: NavigationNode[];
|
|
186
|
+
constructor(element: ObjectDefine);
|
|
187
|
+
key?: string | undefined;
|
|
188
|
+
}
|
|
189
|
+
export type ObjectNodeType = {
|
|
190
|
+
/**
|
|
191
|
+
* 对应导航属性的节点
|
|
192
|
+
*/
|
|
193
|
+
navigation: ObjectDefineNode;
|
|
194
|
+
/**
|
|
195
|
+
* 目标对象
|
|
196
|
+
*/
|
|
197
|
+
objectDefine: ObjectDefine;
|
|
198
|
+
};
|
|
199
|
+
export type VariableData = {
|
|
200
|
+
variable: VariableDefine;
|
|
201
|
+
objectNodeType: ObjectNodeType | undefined;
|
|
202
|
+
};
|
|
203
|
+
export type MethodData = {
|
|
204
|
+
allMethodNodes: NavigationNode[];
|
|
205
|
+
};
|
|
206
|
+
declare let navigationTree: NavigationTree;
|
|
207
|
+
export default navigationTree;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const loadBomFilesForWeb: (loadBomFilesCallback: () => Promise<{
|
|
2
|
+
fileName: string;
|
|
3
|
+
content: string;
|
|
4
|
+
}[]>, loadVocFilesCallback: () => Promise<{
|
|
5
|
+
fileName: string;
|
|
6
|
+
content: string;
|
|
7
|
+
}[]>, loadVarFilesCallback: () => Promise<{
|
|
8
|
+
fileName: string;
|
|
9
|
+
content: string;
|
|
10
|
+
}[]>, loadProjectFilesCallback: () => Promise<{
|
|
11
|
+
fileName: string;
|
|
12
|
+
content: string;
|
|
13
|
+
}[]>) => Promise<void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ObjectDefine, VariableDefine } from './BO';
|
|
2
|
+
export declare class VarFilesReader {
|
|
3
|
+
private objectDefines;
|
|
4
|
+
private variableDefines;
|
|
5
|
+
constructor(objectDefines: ObjectDefine[]);
|
|
6
|
+
doReadVarFile(xml: string, file: string): void;
|
|
7
|
+
getVariableDefines(): VariableDefine[];
|
|
8
|
+
getObjectDefines(): ObjectDefine[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { SemanticErrorData } from '../grammar/diagnostic/SemanticDiagnostic';
|
|
2
|
+
import { BusinessObject, BusinessObjectBunch, ObjectDefine } from './BO';
|
|
3
|
+
export default class VocFilesReader {
|
|
4
|
+
private objectDefines;
|
|
5
|
+
private declareMap;
|
|
6
|
+
/**
|
|
7
|
+
* key为对象的className,与入参的bomMap对象不同的是,bomMap的key为对象名的描述
|
|
8
|
+
*/
|
|
9
|
+
private bomClassNameMap;
|
|
10
|
+
/**
|
|
11
|
+
* 用来记录产生的所有的字段定义信息,在解析完成所有的对象后,在最后统一设置字段对象的type属性
|
|
12
|
+
*/
|
|
13
|
+
private fileDefines;
|
|
14
|
+
constructor(declareMap: Map<string, BusinessObjectBunch>);
|
|
15
|
+
doReadVocFile(content: string, path: string): void;
|
|
16
|
+
/**
|
|
17
|
+
* 处理静态属性,也就是用于枚举的属性描述信息。
|
|
18
|
+
* @param tag 类名及属性名
|
|
19
|
+
* @param businessObjectBunch 对应的在BOM文件的对象的声明
|
|
20
|
+
* @param className 完整的类名
|
|
21
|
+
* @param desc 具体描述
|
|
22
|
+
* @param vocFileName 当前voc文件名
|
|
23
|
+
* @param info 错误相关描述信息
|
|
24
|
+
*/
|
|
25
|
+
processInstance(tag: string, businessObjectBunch: BusinessObjectBunch, className: string, desc: string, vocFileName: string, info: DiagnosticInfo): void;
|
|
26
|
+
/**
|
|
27
|
+
* 处理对象属性或方法的描述声明,先处理可能存在的documentation,如果不是documentation,那么就认为是对象的属性或方法声明描述
|
|
28
|
+
* @param phraseTag 类型部分
|
|
29
|
+
* @param businessObjectBunch 所属的对象声明
|
|
30
|
+
* @param className 对象类型名
|
|
31
|
+
* @param desc 对象描述
|
|
32
|
+
* @param info 错误相关描述信息
|
|
33
|
+
*/
|
|
34
|
+
processPhrase(phraseTag: string, businessObjectBunch: BusinessObjectBunch, className: string, desc: string, info: DiagnosticInfo): void;
|
|
35
|
+
/**
|
|
36
|
+
* 处理当前描述,如果是针对一个方法的,则返回true,否则返回false。
|
|
37
|
+
* @param phraseType 当前phrase类型,可以为navigation或action
|
|
38
|
+
* @param fieldMethodName 完整方法名
|
|
39
|
+
* @param targetBusinessObject 目标业务对象
|
|
40
|
+
* @param targetObjectDefine 目标业务定义对象
|
|
41
|
+
* @param className 完整类型
|
|
42
|
+
* @param desc 描述值
|
|
43
|
+
* @param businessObjectBunch 当前对象所属的BOM文件
|
|
44
|
+
* @returns 返回true表示当前为方法描述,否则返回false,
|
|
45
|
+
* @param info 错误描述信息
|
|
46
|
+
*/
|
|
47
|
+
processPhraseMethod(phraseType: string, fieldMethodName: string, targetBusinessObject: BusinessObject, targetObjectDefine: ObjectDefine, className: string, desc: string, businessObjectBunch: BusinessObjectBunch, info: DiagnosticInfo): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 处理phrase中的documentation,phrase类型有navigation和action两种,documentation标记位于最后,所以它的长度为3
|
|
50
|
+
* @param phrase phrase字符以.分隔的数组
|
|
51
|
+
* @param targetObjectDefine 当前对象定义
|
|
52
|
+
* @param fieldMethodName 当前phrase对应的属性或者方法名
|
|
53
|
+
* @param desc 当前phrase对应的documentation的具体描述
|
|
54
|
+
* @returns 返回一个boolean值,true表示存在documentation,false表示不存在
|
|
55
|
+
*/
|
|
56
|
+
processPhraseDocumentation(phrase: string[], targetObjectDefine: ObjectDefine, fieldMethodName: string, desc: string): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* 处理类的concept声明部分,这部分声明可能包含两块内容:一是documentation,是对类声明的描述;二是label是对类名的描述
|
|
59
|
+
* @param conceptTag concept部分声明
|
|
60
|
+
* @param businessObjectBunch 当前解析voc文件对应的bom文件对象
|
|
61
|
+
* @param className 当前解析到的类名
|
|
62
|
+
* @param desc 当前解析到的属性的值,也就是描述部分
|
|
63
|
+
* @param info 错误相关信息
|
|
64
|
+
*/
|
|
65
|
+
processConcept(conceptTag: string, businessObjectBunch: BusinessObjectBunch, className: string, desc: string, info: DiagnosticInfo): void;
|
|
66
|
+
/**
|
|
67
|
+
* 此方法最后调用,用于设置所有字段定义的type属性对象的对象类型
|
|
68
|
+
*/
|
|
69
|
+
buildFieldDefines(): void;
|
|
70
|
+
getObjectDefines(): ObjectDefine[];
|
|
71
|
+
}
|
|
72
|
+
type DiagnosticInfo = {
|
|
73
|
+
line: number;
|
|
74
|
+
startColumn: number;
|
|
75
|
+
semanticErrorDatas: SemanticErrorData[];
|
|
76
|
+
};
|
|
77
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ObjectDefine } from './BO';
|
|
2
|
+
export default class VscodeBuiltinObjectsLoader {
|
|
3
|
+
private declareMap;
|
|
4
|
+
private vocFilesReader;
|
|
5
|
+
private decoder;
|
|
6
|
+
constructor();
|
|
7
|
+
loadBuiltinStaticMethods(callback: (objectDefines: ObjectDefine[]) => void): Promise<void>;
|
|
8
|
+
private readBasicObjectBomFile;
|
|
9
|
+
private readConstantsObjectBomFile;
|
|
10
|
+
private readStaticMethodBomFile;
|
|
11
|
+
private readBasicObjectVocFile;
|
|
12
|
+
private readConstantsObjectVocFile;
|
|
13
|
+
private readStaticMethodVocFile;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ObjectDefine } from './BO';
|
|
2
|
+
export default class WebBuiltinObjectsLoader {
|
|
3
|
+
private declareMap;
|
|
4
|
+
private vocFilesReader;
|
|
5
|
+
constructor();
|
|
6
|
+
getObjectDefines(): ObjectDefine[];
|
|
7
|
+
private readBasicObjectBomFile;
|
|
8
|
+
private readConstantsObjectBomFile;
|
|
9
|
+
private readStaticMethodBomFile;
|
|
10
|
+
private readBasicObjectVocFile;
|
|
11
|
+
private readStaticMethodVocFile;
|
|
12
|
+
private readConstantsVocFile;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseAllBomFilesForWebView: (bomFilesData: Record<string, Record<string, string>[]>) => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SemanticErrorData } from '../grammar/diagnostic/SemanticDiagnostic';
|
|
2
|
+
import { ExpressionContext } from '../grammar/rule/RuleParser';
|
|
3
|
+
import { BusinessObject, MethodParameter, ObjectField, ObjectMethod } from './BO';
|
|
4
|
+
import { Datatype } from './Datatype';
|
|
5
|
+
export declare const domainValidate: (host: BusinessObject | ObjectMethod | ObjectField | MethodParameter, expression: ExpressionContext, avaliablePredefineVariablesMap: Map<string, Datatype>) => SemanticErrorData | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Expression } from './Expression';
|
|
2
|
+
import { PredefineExpression } from './PredefineExpression';
|
|
3
|
+
export declare class ArithExpression extends Expression {
|
|
4
|
+
private expressions;
|
|
5
|
+
private types;
|
|
6
|
+
constructor(expressions: Expression[], types: ArithType[], text: string);
|
|
7
|
+
toCompileScript(predefineVariableExpressionMap: Map<string, PredefineExpression>): string;
|
|
8
|
+
private buildScript;
|
|
9
|
+
buildArithSymbol(type: ArithType): "*" | "/" | "+" | "-" | "%";
|
|
10
|
+
}
|
|
11
|
+
export declare enum ArithType {
|
|
12
|
+
Add = 0,
|
|
13
|
+
Sub = 1,
|
|
14
|
+
Mul = 2,
|
|
15
|
+
Div = 3,
|
|
16
|
+
Mod = 4
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Expression } from './Expression';
|
|
2
|
+
import { PredefineExpression } from './PredefineExpression';
|
|
3
|
+
export declare class BatchExpression extends Expression {
|
|
4
|
+
private expressions;
|
|
5
|
+
private type;
|
|
6
|
+
constructor(expressions: Expression[], type: BatchType, text: string);
|
|
7
|
+
toCompileScript(predefineVariableExpressionMap: Map<string, PredefineExpression>): string;
|
|
8
|
+
private buildScript;
|
|
9
|
+
}
|
|
10
|
+
export declare enum BatchType {
|
|
11
|
+
AllTrue = 0,
|
|
12
|
+
AnyTrue = 1,
|
|
13
|
+
AllNotTrue = 2
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Expression } from './Expression';
|
|
2
|
+
export declare class CurrentObjectExpression extends Expression {
|
|
3
|
+
private objectName;
|
|
4
|
+
private fields;
|
|
5
|
+
constructor(objectName: string, fields: string[], text: string);
|
|
6
|
+
toCompileScript(): string;
|
|
7
|
+
getObjectName(): string;
|
|
8
|
+
getFields(): string[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FieldDefine } from '../BO';
|
|
2
|
+
import { Expression } from './Expression';
|
|
3
|
+
export declare class EnumExpression extends Expression {
|
|
4
|
+
private fieldDefine;
|
|
5
|
+
constructor(fieldDefine: FieldDefine, text: string);
|
|
6
|
+
toCompileScript(): string;
|
|
7
|
+
getFieldDefine(): FieldDefine;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PredefineExpression } from './PredefineExpression';
|
|
2
|
+
export declare abstract class Expression {
|
|
3
|
+
private text;
|
|
4
|
+
constructor(text: string);
|
|
5
|
+
abstract toCompileScript(predefineVariableMap: Map<string, PredefineExpression>): string;
|
|
6
|
+
getText(): string;
|
|
7
|
+
}
|
|
8
|
+
export declare const buildIndent: (level: number) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FieldDefine, MethodDefine } from '../BO';
|
|
2
|
+
import { Expression } from './Expression';
|
|
3
|
+
import { PredefineExpression } from './PredefineExpression';
|
|
4
|
+
export declare class MethodExpression extends Expression {
|
|
5
|
+
private define;
|
|
6
|
+
private parameters;
|
|
7
|
+
constructor(define: MethodDefine | FieldDefine, parameters: Expression[], text: string);
|
|
8
|
+
toCompileScript(predefineVariableExpressionMap: Map<string, PredefineExpression>): string;
|
|
9
|
+
buildScript(predefineVariableExpressionMap: Map<string, PredefineExpression>): string;
|
|
10
|
+
getParameters(): Expression[];
|
|
11
|
+
getDefine(): MethodDefine | FieldDefine;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TerminalNode } from 'antlr4ng';
|
|
2
|
+
import { Datatype } from '../Datatype';
|
|
3
|
+
import { Expression } from './Expression';
|
|
4
|
+
export declare class PlaceholderExpression extends Expression {
|
|
5
|
+
private label;
|
|
6
|
+
private line;
|
|
7
|
+
private column;
|
|
8
|
+
private start;
|
|
9
|
+
private stop;
|
|
10
|
+
private datatype;
|
|
11
|
+
constructor(placeholder: TerminalNode, datatype: Datatype);
|
|
12
|
+
toCompileScript(): string;
|
|
13
|
+
getLine(): number;
|
|
14
|
+
getColumn(): number;
|
|
15
|
+
getStart(): number;
|
|
16
|
+
getStop(): number;
|
|
17
|
+
getDatatype(): Datatype;
|
|
18
|
+
getLabel(): string;
|
|
19
|
+
setLabel(label: string): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BusinessObject } from '../BO';
|
|
2
|
+
import { Expression } from './Expression';
|
|
3
|
+
export declare class PredefineExpression extends Expression {
|
|
4
|
+
name: string;
|
|
5
|
+
object?: BusinessObject;
|
|
6
|
+
objectType?: PredefineObjectType;
|
|
7
|
+
value?: Expression;
|
|
8
|
+
sourceType?: PredefineSourceType;
|
|
9
|
+
source?: Expression;
|
|
10
|
+
condition?: Expression;
|
|
11
|
+
private hashCode?;
|
|
12
|
+
constructor(name: string, text: string);
|
|
13
|
+
toCompileScript(predefineVariableExpressionMap: Map<string, PredefineExpression>): string;
|
|
14
|
+
private buildPredefineValue;
|
|
15
|
+
private buildScript;
|
|
16
|
+
getHashCode(): string | undefined;
|
|
17
|
+
}
|
|
18
|
+
export declare enum PredefineObjectType {
|
|
19
|
+
one = 0,
|
|
20
|
+
many = 1
|
|
21
|
+
}
|
|
22
|
+
export declare enum PredefineSourceType {
|
|
23
|
+
in = 0,
|
|
24
|
+
from = 1
|
|
25
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Expression } from './Expression';
|
|
2
|
+
import { PredefineExpression } from './PredefineExpression';
|
|
3
|
+
export declare class RuleExpression {
|
|
4
|
+
predefineExpressions?: PredefineExpression[];
|
|
5
|
+
ifExpression?: Expression;
|
|
6
|
+
thenExpression?: Expression[];
|
|
7
|
+
elseExpression?: Expression[];
|
|
8
|
+
toScript(name: string, predefineVariableMap: Map<string, PredefineExpression>): string;
|
|
9
|
+
buildElseRule(name: string, predefineVariableMap: Map<string, PredefineExpression>): string;
|
|
10
|
+
}
|
|
11
|
+
export declare class RuleProperty {
|
|
12
|
+
private name;
|
|
13
|
+
private value;
|
|
14
|
+
constructor(name: string, value: string);
|
|
15
|
+
toScript(): string;
|
|
16
|
+
getName(): string;
|
|
17
|
+
getValue(): string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Expression } from './Expression';
|
|
2
|
+
import { PredefineExpression } from './PredefineExpression';
|
|
3
|
+
export declare class VariableExpression extends Expression {
|
|
4
|
+
private name;
|
|
5
|
+
private fields;
|
|
6
|
+
constructor(name: string, fields: string[], text: string);
|
|
7
|
+
toCompileScript(predefineVariableExpressionMap: Map<string, PredefineExpression>): string;
|
|
8
|
+
getName(): string;
|
|
9
|
+
getFields(): string[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ObjectMethod } from '../../BO';
|
|
2
|
+
import { Expression } from '../Expression';
|
|
3
|
+
import { PredefineExpression } from '../PredefineExpression';
|
|
4
|
+
export declare const doCompileCommonMethodScript: (text: string, parameters: Expression[], objectMethod: ObjectMethod, predefineVariableExpressionMap: Map<string, PredefineExpression>) => string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ObjectMethod } from '../../BO';
|
|
2
|
+
import { Expression } from '../Expression';
|
|
3
|
+
import { PredefineExpression } from '../PredefineExpression';
|
|
4
|
+
export declare const doCompileCompareMethodScript: (text: string, parameters: Expression[], objectMethod: ObjectMethod, predefineVariableExpressionMap: Map<string, PredefineExpression>) => string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ParserRuleContext } from 'antlr4ng';
|
|
2
|
+
import { ExpressionContext, VariableContext } from '../grammar/rule/RuleParser';
|
|
3
|
+
import { Datatype } from '../model/Datatype';
|
|
4
|
+
import { Expression } from '../model/expression/Expression';
|
|
5
|
+
import { VariableExpression } from '../model/expression/VariableExpression';
|
|
6
|
+
declare class ExpressionFinder {
|
|
7
|
+
private parseBatchCondition;
|
|
8
|
+
parseExpression(context: ExpressionContext, finderContext: ExpressionFinderContext): Expression | undefined;
|
|
9
|
+
private parseArithmetic;
|
|
10
|
+
private parseMethod;
|
|
11
|
+
private findTargetMethodNodesByDescriptor;
|
|
12
|
+
private doFindTargetMethodNodesByDescriptor;
|
|
13
|
+
private findTargetDefine;
|
|
14
|
+
private parseBasic;
|
|
15
|
+
private parseObject;
|
|
16
|
+
private parsePlaceholder;
|
|
17
|
+
private parseEnum;
|
|
18
|
+
private parseCurrentLoopItemObject;
|
|
19
|
+
private parseLiteral;
|
|
20
|
+
parseVariable(variableContext: VariableContext, finderContext: ExpressionFinderContext): VariableExpression;
|
|
21
|
+
private findTargetFieldNode;
|
|
22
|
+
}
|
|
23
|
+
export declare class ExpressionFinderContext {
|
|
24
|
+
targetOffset: number;
|
|
25
|
+
targetExpression?: Expression;
|
|
26
|
+
targetExpressionContext?: ParserRuleContext;
|
|
27
|
+
avaliablePredefineVariablesMap: Map<string, Datatype>;
|
|
28
|
+
constructor(targetOffset: number, avaliablePredefineVariablesMap: Map<string, Datatype>);
|
|
29
|
+
assertTargetExpression(context: ParserRuleContext, targetExpression: Expression): void;
|
|
30
|
+
}
|
|
31
|
+
declare const expressionFinder: ExpressionFinder;
|
|
32
|
+
export default expressionFinder;
|