Class NamespaceResolversScope

java.lang.Object
org.eclipse.lsp4j.debug.Scope
io.quarkus.qute.debug.agent.scopes.RemoteScope
io.quarkus.qute.debug.agent.scopes.NamespaceResolversScope
All Implemented Interfaces:
VariablesProvider

public class NamespaceResolversScope extends RemoteScope
Represents the namespace resolvers scope in the Qute debugger.

This scope exposes all the namespaces that are registered in the Qute Engine. Each namespace becomes a variable in the debugger so that its resolvers can be explored.

  • Constructor Details

    • NamespaceResolversScope

      public NamespaceResolversScope(io.quarkus.qute.Engine engine, RemoteStackFrame frame, VariablesRegistry variablesRegistry)
      Creates a new namespace resolvers scope.
      Parameters:
      engine - the Qute engine to extract namespaces from
      frame - the stack frame associated with this scope
      variablesRegistry - the registry managing all debugger variables
  • Method Details

    • createVariables

      protected Collection<org.eclipse.lsp4j.debug.Variable> createVariables()
      Creates the variables representing all namespace resolvers.

      For each namespace in the engine, a variable is created with an empty value. The variable name corresponds to the namespace name.

      Specified by:
      createVariables in class RemoteScope
      Returns:
      a collection of Variable representing the namespace resolvers