Package io.deephaven.lang.parse
Class CompletionParser
- java.lang.Object
-
- io.deephaven.lang.parse.CompletionParser
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class CompletionParser extends java.lang.Object implements java.io.CloseableA specialized parser for autocompletion; maybe better to call it a chunker than a parser...
-
-
Constructor Summary
Constructors Constructor Description CompletionParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ParsedDocumentfinish(java.lang.String uri)voidopen(java.lang.String text, java.lang.String uri, java.lang.String version)ParsedDocumentparse(java.lang.String document)voidremove(java.lang.String uri)voidupdate(java.lang.String uri, java.lang.String version, java.util.List<io.deephaven.proto.backplane.script.grpc.ChangeDocumentRequest.TextDocumentContentChangeEvent> changes)
-
-
-
Method Detail
-
parse
public ParsedDocument parse(java.lang.String document) throws ParseException
- Throws:
ParseException
-
open
public void open(java.lang.String text, java.lang.String uri, java.lang.String version)
-
update
public void update(java.lang.String uri, java.lang.String version, java.util.List<io.deephaven.proto.backplane.script.grpc.ChangeDocumentRequest.TextDocumentContentChangeEvent> changes)
-
remove
public void remove(java.lang.String uri)
-
finish
public ParsedDocument finish(java.lang.String uri)
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-