Uses of Class
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.RNCDocument
Packages that use RNCDocument
Package
Description
-
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc that return RNCDocumentModifier and TypeMethodDescriptionIRNCDocumentProvider.getDocument(String uri) Returns the parsedRNCDocumentfor the given URI, ornullif the document cannot be found or parsed.RNCNode.getOwnerDocument()Walks up the parent chain to find the rootRNCDocument.AbstractRNCRequest.getRNCDocument()Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc with parameters of type RNCDocumentModifier and TypeMethodDescriptionList<org.eclipse.lsp4j.CodeAction> RNCLanguageService.doCodeActions(RNCDocument rncDocument, org.eclipse.lsp4j.Range range, org.eclipse.lsp4j.CodeActionContext context, boolean snippetSupported, boolean resolveSupported, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes code actions (quick fixes) for diagnostics in the given range.org.eclipse.lsp4j.CompletionListRNCLanguageService.doComplete(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes completion items for the given position in an RNC document.org.eclipse.lsp4j.HoverRNCLanguageService.doHover(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes hover information for the word at the given position.org.eclipse.lsp4j.WorkspaceEditRNCLanguageService.doRename(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, String newName, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Renames the symbol at the given position across all its occurrences.List<? extends org.eclipse.lsp4j.LocationLink> RNCLanguageService.findDefinition(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Finds the definition location for the symbol at the given position.List<org.eclipse.lsp4j.DocumentHighlight> RNCLanguageService.findDocumentHighlights(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Finds all occurrences of the symbol at the given position for highlighting.List<org.eclipse.lsp4j.DocumentLink> RNCLanguageService.findDocumentLinks(RNCDocument rncDocument, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Finds document links (clickable URIs) in an RNC document.List<org.eclipse.lsp4j.DocumentSymbol> RNCLanguageService.findDocumentSymbols(RNCDocument rncDocument, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes hierarchical document symbols for the Outline view.List<? extends org.eclipse.lsp4j.Location> RNCLanguageService.findReferences(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.ReferenceContext context, WorkspaceIndex workspaceIndex, Function<String, String> openDocContent, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Finds all references to the symbol at the given position.List<org.eclipse.lsp4j.SymbolInformation> RNCLanguageService.findSymbolInformations(RNCDocument rncDocument, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes flat symbol information for workspace-wide symbol search.List<org.eclipse.lsp4j.CodeLens> RNCLanguageService.getCodeLens(RNCDocument rncDocument, boolean supportedByClient, WorkspaceIndex workspaceIndex, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes code lenses for an RNC document.List<org.eclipse.lsp4j.FoldingRange> RNCLanguageService.getFoldingRanges(RNCDocument rncDocument, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes folding ranges for an RNC document.List<org.eclipse.lsp4j.InlayHint> RNCInlayHints.getInlayHints(RNCDocument rncDocument, org.eclipse.lsp4j.Range range) List<org.eclipse.lsp4j.InlayHint> RNCLanguageService.getInlayHints(RNCDocument rncDocument, org.eclipse.lsp4j.Range range) Computes inlay hints for an RNC document.List<org.eclipse.lsp4j.SelectionRange> RNCLanguageService.getSelectionRanges(RNCDocument rncDocument, List<org.eclipse.lsp4j.Position> positions, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Range, org.eclipse.lsp4j.PrepareRenameResult> RNCLanguageService.prepareRename(RNCDocument rncDocument, org.eclipse.lsp4j.Position position) Validates whether rename is possible at the given position and returns the range of the symbol to rename.static RNCDatatypeLibraryRNCDatatypeLibrary.resolve(RNCDocument document, String prefix) Resolves a datatype prefix to its library by looking up thedatatypesdeclarations in the given RNC document.org.eclipse.lsp4j.CodeActionRNCLanguageService.resolveCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.CodeAction unresolved, boolean snippetSupported) Resolves a code action by computing its workspace edit lazily.org.eclipse.lsp4j.CompletionItemRNCLanguageService.resolveCompletionItem(org.eclipse.lsp4j.CompletionItem item, RNCDocument rncDocument, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Resolves a completion item by adding documentation (hover content).Method parameters in org.eclipse.lemminx.extensions.relaxng.grammar.rnc with type arguments of type RNCDocumentModifier and TypeMethodDescriptionprotected voidRNCTextDocumentService.onDidChange(ModelTextDocument<RNCDocument, SharedSettings> document) Called when an RNC document is changed.protected voidRNCTextDocumentService.onDidOpen(ModelTextDocument<RNCDocument, SharedSettings> document) Called when an RNC document is opened.Constructors in org.eclipse.lemminx.extensions.relaxng.grammar.rnc with parameters of type RNCDocumentModifierConstructorDescriptionAbstractRNCRequest(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, SharedSettings sharedSettings) Creates a new completion request. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.codeaction
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.codeaction with parameters of type RNCDocumentModifier and TypeMethodDescriptionvoidAbstractRNCInsertCodeAction.doCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.TextDocumentItem document, boolean snippetSupported, List<org.eclipse.lsp4j.CodeAction> codeActions, IRNCDocumentProvider documentProvider, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Creates aCodeActionthat inserts text at the end of the diagnostic range.voidextract_defineCodeAction.doCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.Range range, boolean snippetSupported, boolean resolveSupported, List<org.eclipse.lsp4j.CodeAction> codeActions) Generates an "Extract define" code action if the cursor is on an extractable element or attribute node.voidinclude_not_overridingCodeAction.doCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.TextDocumentItem document, boolean snippetSupported, List<org.eclipse.lsp4j.CodeAction> codeActions, IRNCDocumentProvider documentProvider, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Generates "Did you mean" and "Replace with" code actions by resolving the included file and comparing its defines with the misspelled name.voidIRNCCodeActionParticipant.doCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.TextDocumentItem document, boolean snippetSupported, List<org.eclipse.lsp4j.CodeAction> codeActions, IRNCDocumentProvider documentProvider, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) voidmissing_open_braceCodeAction.doCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.TextDocumentItem document, boolean snippetSupported, List<org.eclipse.lsp4j.CodeAction> codeActions, IRNCDocumentProvider documentProvider, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Inserts an opening{(and optionally closing}) brace after the element or attribute name.voidmissing_patternCodeAction.doCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.TextDocumentItem document, boolean snippetSupported, List<org.eclipse.lsp4j.CodeAction> codeActions, IRNCDocumentProvider documentProvider, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Generates code actions to fill an empty block with common patterns (text,empty, nested element, nested attribute).voidmissing_start_elementCodeAction.doCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.TextDocumentItem document, boolean snippetSupported, List<org.eclipse.lsp4j.CodeAction> codeActions, IRNCDocumentProvider documentProvider, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Generates one "Add 'start = ...'" code action per existing define, inserting the start declaration before the first define.voidunclosed_blockCodeAction.doCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.TextDocumentItem document, boolean snippetSupported, List<org.eclipse.lsp4j.CodeAction> codeActions, IRNCDocumentProvider documentProvider, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Inserts a closing}brace at the inferred position — before the next top-level construct, or at the end of the document.voidundefined_patternCodeAction.doCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.Diagnostic diagnostic, org.eclipse.lsp4j.TextDocumentItem document, boolean snippetSupported, List<org.eclipse.lsp4j.CodeAction> codeActions, IRNCDocumentProvider documentProvider, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Generates "Did you mean" suggestions for similar defines and built-in keywords, plus "Create define" code actions to define the missing pattern.List<org.eclipse.lsp4j.CodeAction> RNCCodeActions.doCodeActions(RNCDocument rncDocument, org.eclipse.lsp4j.Range range, org.eclipse.lsp4j.CodeActionContext context, boolean snippetSupported, boolean resolveSupported, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes code actions for the given range and diagnostic context.org.eclipse.lsp4j.CodeActionextract_defineCodeAction.resolveCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.CodeAction unresolved, boolean snippetSupported) Resolves a deferred "Extract define" code action by computing the workspace edit (replace inline pattern with name, append define at end).org.eclipse.lsp4j.CodeActionRNCCodeActions.resolveCodeAction(RNCDocument rncDocument, org.eclipse.lsp4j.CodeAction unresolved, boolean snippetSupported) Resolves a deferred code action by computing its workspace edit. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.codelens
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.codelens with parameters of type RNCDocumentModifier and TypeMethodDescriptionList<org.eclipse.lsp4j.CodeLens> RNCCodeLenses.getCodeLens(RNCDocument rncDocument, boolean supportedByClient, WorkspaceIndex workspaceIndex, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes code lenses for all defines in the given RNC document, plus a workspace "N references" lens at the top of the file. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.completion
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.completion with parameters of type RNCDocumentModifier and TypeMethodDescriptionorg.eclipse.lsp4j.CompletionListRNCCompletions.doComplete(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) static org.eclipse.lsp4j.CompletionItemRNCCompletionResolver.resolveCompletionItem(org.eclipse.lsp4j.CompletionItem item, RNCDocument rncDocument, RNCHover hover, SharedSettings sharedSettings, IRNCDocumentProvider documentProvider, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Resolves the documentation for a completion item that was deferred at completion time.Constructors in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.completion with parameters of type RNCDocumentModifierConstructorDescriptionRNCCompletionRequest(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, SharedSettings sharedSettings) Creates a new completion request. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.definition
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.definition with parameters of type RNCDocumentModifier and TypeMethodDescriptionList<? extends org.eclipse.lsp4j.LocationLink> RNCDefinitions.findDefinition(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Finds the definition location for the word at the given cursor position. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.documentlink
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.documentlink with parameters of type RNCDocumentModifier and TypeMethodDescriptionList<org.eclipse.lsp4j.DocumentLink> RNCDocumentLinks.findDocumentLinks(RNCDocument rncDocument, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Finds all document links in the given RNC document by resolving file reference URIs fromincludeandexternaldeclarations. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.folding
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.folding with parameters of type RNCDocumentModifier and TypeMethodDescriptionList<org.eclipse.lsp4j.FoldingRange> RNCFoldings.getFoldingRanges(RNCDocument rncDocument, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes folding ranges for the given RNC document. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.highlight
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.highlight with parameters of type RNCDocumentModifier and TypeMethodDescriptionList<org.eclipse.lsp4j.DocumentHighlight> RNCHighlighting.findDocumentHighlights(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Finds all occurrences of the define name at the given cursor position, returning them as document highlights with Write/Read kinds. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.hover
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.hover with parameters of type RNCDocumentModifier and TypeMethodDescriptionorg.eclipse.lsp4j.HoverRNCHover.doHover(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, SharedSettings sharedSettings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes hover information for the word at the given position.Constructors in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.hover with parameters of type RNCDocumentModifierConstructorDescriptionRNCHoverRequest(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, SharedSettings sharedSettings) Creates a new hover request. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.parser
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.parser that return RNCDocumentModifier and TypeMethodDescriptionRNCRange.getOwnerDocument()Returns the owner document.RNCParser.parse(CharSequence text, String uri) Parses RNC source text into anRNCDocumentAST. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.reference
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.reference with parameters of type RNCDocumentModifier and TypeMethodDescriptionList<? extends org.eclipse.lsp4j.Location> RNCReferences.findReferences(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.ReferenceContext context, WorkspaceIndex workspaceIndex, Function<String, String> openDocContent, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Finds all references to the define name at the given cursor position. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.rename
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.rename with parameters of type RNCDocumentModifier and TypeMethodDescriptionorg.eclipse.lsp4j.WorkspaceEditRNCRename.doRename(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, String newName, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Renames the define at the given position, updating its declaration and all references within the document.org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.Range, org.eclipse.lsp4j.PrepareRenameResult> RNCRename.prepareRename(RNCDocument rncDocument, org.eclipse.lsp4j.Position position) Validates that the cursor is on a renamable define name and returns the word range for the editor to pre-fill the rename input box. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.selectionrange
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.selectionrange with parameters of type RNCDocumentModifier and TypeMethodDescriptionList<org.eclipse.lsp4j.SelectionRange> RNCSelectionRanges.getSelectionRanges(RNCDocument rncDocument, List<org.eclipse.lsp4j.Position> positions, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.symbols
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.symbols with parameters of type RNCDocumentModifier and TypeMethodDescriptionList<org.eclipse.lsp4j.DocumentSymbol> RNCSymbols.findDocumentSymbols(RNCDocument rncDocument, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes hierarchical document symbols for the editor's Outline view.List<org.eclipse.lsp4j.SymbolInformation> RNCSymbols.findSymbolInformations(RNCDocument rncDocument, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Computes flat symbol information for workspace symbol search. -
Uses of RNCDocument in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.utils
Methods in org.eclipse.lemminx.extensions.relaxng.grammar.rnc.utils that return RNCDocumentModifier and TypeMethodDescriptionstatic RNCDocumentReads and parses an RNC file from the filesystem.static RNCDocumentRNCIncludeUtils.resolveAndParse(RNCFileReferenceNode ref, String documentUri) Resolves the URI of a file reference and parses the target RNC file.