Module io.quarkus.qute.debug
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
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.
-
Field Summary
Fields inherited from class io.quarkus.qute.debug.agent.scopes.RemoteScope
EMPTY_SCOPES -
Constructor Summary
ConstructorsConstructorDescriptionNamespaceResolversScope(io.quarkus.qute.Engine engine, RemoteStackFrame frame, VariablesRegistry variablesRegistry) Creates a new namespace resolvers scope. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<org.eclipse.lsp4j.debug.Variable> Creates the variables representing all namespace resolvers.Methods inherited from class io.quarkus.qute.debug.agent.scopes.RemoteScope
fillVariables, getStackFrame, getVariables, getVariablesRegistryMethods inherited from class org.eclipse.lsp4j.debug.Scope
equals, getColumn, getEndColumn, getEndLine, getIndexedVariables, getLine, getName, getNamedVariables, getPresentationHint, getSource, getVariablesReference, hashCode, isExpensive, setColumn, setEndColumn, setEndLine, setExpensive, setIndexedVariables, setLine, setName, setNamedVariables, setPresentationHint, setSource, setVariablesReference, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.quarkus.qute.debug.agent.variables.VariablesProvider
getVariablesReference, setVariablesReference
-
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 fromframe- the stack frame associated with this scopevariablesRegistry- the registry managing all debugger variables
-
-
Method Details
-
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:
createVariablesin classRemoteScope- Returns:
- a collection of
Variablerepresenting the namespace resolvers
-