下面列出了怎么用org.eclipse.lsp4j.jsonrpc.services.JsonRequest的API类实例代码及写法,或者点击链接到github查看源代码。
@JsonRequest("initialize")
CompletableFuture<Boolean> initialize(InitializeParameters params);
@JsonRequest("shutdown")
CompletableFuture<Object> shutdown();
@JsonRequest
CompletableFuture<AutoCloseTagResponse> closeTag(TextDocumentPositionParams params);
/**
* Provide all incoming calls for an item, e.g all callers for a method. In graph terms this descibes directed
* and annotated edges inside the call graph, e.g the given item is the starting node and the result is the nodes
* that can be reached.
*/
@Beta
@JsonRequest(value="callHierarchy/incomingCalls", useSegment = false)
default CompletableFuture<List<CallHierarchyIncomingCall>> callHierarchyIncomingCalls(CallHierarchyIncomingCallsParams params) {
throw new UnsupportedOperationException();
}
@JsonRequest
CompletableFuture<MyParam> askClient(MyParam param);
@JsonRequest("build/shutdown")
CompletableFuture<Object> buildShutdown();
@JsonRequest("workspace/buildTargets")
CompletableFuture<WorkspaceBuildTargetsResult> workspaceBuildTargets();
/**
* Provide all outgoing calls for an item, e.g call calls to functions, methods, or constructors from the given item. In
* graph terms this descibes directed and annotated edges inside the call graph, e.g the given item is the starting
* node and the result is the nodes that can be reached.
*/
@Beta
@JsonRequest(value="callHierarchy/outgoingCalls", useSegment = false)
default CompletableFuture<List<CallHierarchyOutgoingCall>> callHierarchyOutgoingCalls(CallHierarchyOutgoingCallsParams params) {
throw new UnsupportedOperationException();
}
@JsonRequest("buildTarget/inverseSources")
CompletableFuture<InverseSourcesResult> buildTargetInverseSources(InverseSourcesParams params);
@JsonRequest("buildTarget/dependencySources")
CompletableFuture<DependencySourcesResult> buildTargetDependencySources(DependencySourcesParams params);
@JsonRequest("buildTarget/resources")
CompletableFuture<ResourcesResult> buildTargetResources(ResourcesParams params);
@JsonRequest("buildTarget/compile")
CompletableFuture<CompileResult> buildTargetCompile(CompileParams params);
@JsonRequest("buildTarget/run")
CompletableFuture<RunResult> buildTargetRun(RunParams params);
@JsonRequest("buildTarget/scalaTestClasses")
CompletableFuture<ScalaTestClassesResult> buildTargetScalaTestClasses(ScalaTestClassesParams params);
/**
* Obtains information on a possible data breakpoint that could be set on an
* expression or variable.
*/
@JsonRequest
default CompletableFuture<DataBreakpointInfoResponse> dataBreakpointInfo(DataBreakpointInfoArguments args) {
throw new UnsupportedOperationException();
}
@JsonRequest("buildTarget/jvmRunEnvironment")
CompletableFuture<JvmRunEnvironmentResult> jvmRunEnvironment(JvmRunEnvironmentParams params);
@JsonRequest("buildTarget/jvmTestEnvironment")
CompletableFuture<JvmTestEnvironmentResult> jvmTestEnvironment(JvmTestEnvironmentParams params);
@JsonRequest
CompletableFuture<MyParam> askServer(MyParam param);
@JsonRequest
CompletableFuture<BuildWorkspaceStatus> buildWorkspace(boolean forceReBuild);
@JsonRequest
public CompletableFuture<String> doStuff2(String arg, Integer arg2);
/**
* Retrieves the set of all sources currently loaded by the debugged process.
*/
@JsonRequest
default CompletableFuture<LoadedSourcesResponse> loadedSources(LoadedSourcesArguments args) {
throw new UnsupportedOperationException();
}
@JsonRequest
CompletableFuture<WorkspaceEdit> generateHashCodeEquals(GenerateHashCodeEqualsParams params);
@JsonRequest
CompletableFuture<WorkspaceEdit> organizeImports(CodeActionParams params);
@JsonRequest
CompletableFuture<WorkspaceEdit> generateToString(GenerateToStringParams params);
/**
* The request returns a stacktrace from the current execution state.
*/
@JsonRequest
default CompletableFuture<StackTraceResponse> stackTrace(StackTraceArguments args) {
throw new UnsupportedOperationException();
}
/**
* The request retrieves the source code for a given source reference.
*/
@JsonRequest
default CompletableFuture<SourceResponse> source(SourceArguments args) {
throw new UnsupportedOperationException();
}
@JsonRequest
CompletableFuture<CheckConstructorsResponse> checkConstructorsStatus(CodeActionParams params);
/**
* The request starts the debuggee to run again.
*/
@JsonRequest(value = "continue")
default CompletableFuture<ContinueResponse> continue_(ContinueArguments args) {
throw new UnsupportedOperationException();
}
@JsonRequest
CompletableFuture<WorkspaceEdit> generateDelegateMethods(GenerateDelegateMethodsParams params);
@JsonRequest
CompletableFuture<RefactorWorkspaceEdit> getRefactorEdit(GetRefactorEditParams params);