Class DebuggerEvalContext

java.lang.Object
io.quarkus.qute.debug.agent.DebuggerEvalContext
All Implemented Interfaces:
io.quarkus.qute.EvalContext

public class DebuggerEvalContext extends Object implements 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 Details

    • DebuggerEvalContext

      public DebuggerEvalContext(Object base, RemoteStackFrame stackFrame)
      Creates a new debugger evaluation context.
      Parameters:
      base - the base object for evaluation, may be null
      stackFrame - the current RemoteStackFrame associated with this context
  • Method Details

    • getBase

      public Object getBase()
      Returns the base object for this evaluation context.
      Specified by:
      getBase in interface io.quarkus.qute.EvalContext
      Returns:
      the base object, may be null
    • getName

      public String 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:
      getName in interface io.quarkus.qute.EvalContext
      Returns:
      an empty string
    • getParams

      public List<io.quarkus.qute.Expression> 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:
      getParams in interface io.quarkus.qute.EvalContext
      Returns:
      an empty list of parameters
    • evaluate

      public CompletionStage<Object> evaluate(String expression)
      Evaluates a raw expression string within the current stack frame.
      Specified by:
      evaluate in interface io.quarkus.qute.EvalContext
      Parameters:
      expression - the expression to evaluate
      Returns:
      a CompletionStage with the result of the evaluation
    • evaluate

      public CompletionStage<Object> evaluate(io.quarkus.qute.Expression expression)
      Evaluates a compiled Expression instance.

      This method is currently not implemented and always returns null.

      Specified by:
      evaluate in interface io.quarkus.qute.EvalContext
      Parameters:
      expression - the compiled expression to evaluate
      Returns:
      always null
    • getAttribute

      public Object getAttribute(String key)
      Retrieves an attribute by key.

      This method is currently not implemented and always returns null.

      Specified by:
      getAttribute in interface io.quarkus.qute.EvalContext
      Parameters:
      key - the attribute key
      Returns:
      always null
    • resolutionContext

      public io.quarkus.qute.ResolutionContext resolutionContext()
      Returns the ResolutionContext associated with the current stack frame.
      Specified by:
      resolutionContext in interface io.quarkus.qute.EvalContext
      Returns:
      the resolution context of the current stack frame