java.lang.Object
io.quarkus.qute.debug.agent.DebuggerEvalContext
- All Implemented Interfaces:
io.quarkus.qute.EvalContext
Implementation of
EvalContext used by the Qute debugger.
This context provides evaluation support for expressions within the current stack frame being debugged. It allows evaluating expressions dynamically while debugging a template.
-
Constructor Summary
ConstructorsConstructorDescriptionDebuggerEvalContext(Object base, RemoteStackFrame stackFrame) Creates a new debugger evaluation context. -
Method Summary
Modifier and TypeMethodDescriptionevaluate(io.quarkus.qute.Expression expression) Evaluates a compiledExpressioninstance.Evaluates a raw expression string within the current stack frame.getAttribute(String key) Retrieves an attribute by key.getBase()Returns the base object for this evaluation context.getName()Returns the name of the expression being evaluated.List<io.quarkus.qute.Expression> Returns the list of parameters for this evaluation.io.quarkus.qute.ResolutionContextReturns theResolutionContextassociated with the current stack frame.
-
Constructor Details
-
DebuggerEvalContext
Creates a new debugger evaluation context.- Parameters:
base- the base object for evaluation, may benullstackFrame- the currentRemoteStackFrameassociated with this context
-
-
Method Details
-
getBase
Returns the base object for this evaluation context.- Specified by:
getBasein interfaceio.quarkus.qute.EvalContext- Returns:
- the base object, may be
null
-
getName
Returns the name of the expression being evaluated.This implementation always returns an empty string as the debugger context does not use expression names directly.
- Specified by:
getNamein interfaceio.quarkus.qute.EvalContext- Returns:
- an empty string
-
getParams
Returns the list of parameters for this evaluation.This implementation always returns an empty list as parameterized expressions are not used in the debugger context.
- Specified by:
getParamsin interfaceio.quarkus.qute.EvalContext- Returns:
- an empty list of parameters
-
evaluate
Evaluates a raw expression string within the current stack frame.- Specified by:
evaluatein interfaceio.quarkus.qute.EvalContext- Parameters:
expression- the expression to evaluate- Returns:
- a
CompletionStagewith the result of the evaluation
-
evaluate
Evaluates a compiledExpressioninstance.This method is currently not implemented and always returns
null.- Specified by:
evaluatein interfaceio.quarkus.qute.EvalContext- Parameters:
expression- the compiled expression to evaluate- Returns:
- always
null
-
getAttribute
Retrieves an attribute by key.This method is currently not implemented and always returns
null.- Specified by:
getAttributein interfaceio.quarkus.qute.EvalContext- Parameters:
key- the attribute key- Returns:
- always
null
-
resolutionContext
public io.quarkus.qute.ResolutionContext resolutionContext()Returns theResolutionContextassociated with the current stack frame.- Specified by:
resolutionContextin interfaceio.quarkus.qute.EvalContext- Returns:
- the resolution context of the current stack frame
-