Module io.quarkus.qute.debug
Class EvaluationSupport
java.lang.Object
io.quarkus.qute.debug.agent.evaluations.EvaluationSupport
Provides support for evaluating expressions in the context of a debugged template.
This class is used by the debugger to evaluate expressions in a specific stack frame, such as when the user hovers over a variable or issues an "evaluate" request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<org.eclipse.lsp4j.debug.EvaluateResponse> Evaluates a string expression in the context of a given stack frame.
-
Constructor Details
-
EvaluationSupport
-
-
Method Details
-
evaluate
public CompletableFuture<org.eclipse.lsp4j.debug.EvaluateResponse> evaluate(Integer frameId, String expression, String context) Evaluates a string expression in the context of a given stack frame.- Parameters:
frameId- the ID of the stack frame where the expression should be evaluatedexpression- the expression to evaluatecontext- the evaluation context (e.g., HOVER, WATCH)- Returns:
- a CompletableFuture resolving to an
EvaluateResponse
-