Package io.deephaven.lang.parse
Class CompletionParser
java.lang.Object
io.deephaven.lang.parse.CompletionParser
- All Implemented Interfaces:
Closeable
,AutoCloseable
A specialized parser for autocompletion; maybe better to call it a chunker than a parser...
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
void
void
update
(String uri, int version, List<ChangeDocumentRequest.TextDocumentContentChangeEvent> changes) static String
updateDocumentChanges
(String uri, int version, String document, List<ChangeDocumentRequest.TextDocumentContentChangeEvent> changes)
-
Constructor Details
-
CompletionParser
public CompletionParser()
-
-
Method Details
-
updateDocumentChanges
public static String updateDocumentChanges(String uri, int version, String document, List<ChangeDocumentRequest.TextDocumentContentChangeEvent> changes) -
parse
- Throws:
ParseException
-
open
-
update
public void update(String uri, int version, List<ChangeDocumentRequest.TextDocumentContentChangeEvent> changes) -
remove
-
getText
-
finish
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-