java.lang.Object
io.quarkus.qute.debug.agent.variables.VariableContext
- All Implemented Interfaces:
ValueResolverContext
Context for collecting variables in the debugger.
Implements ValueResolverContext and is used to gather variables
for inspection in the Variables view of the debugger.
Unlike
, only actual values of properties (fields)
are collected. Methods can be added as names, but their values are not
evaluated.
invalid reference
CompletionContext
-
Constructor Summary
ConstructorsConstructorDescriptionVariableContext(Object base, RemoteStackFrame stackFrame, VariablesRegistry variablesRegistry, Collection<org.eclipse.lsp4j.debug.Variable> variables) -
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters a method to the context (for completion or variable tracking).voidRegisters a method by name.voidaddProperty(Field field) Registers a field as a property in the context.voidaddProperty(String property) Registers a property by name.getBase()Returns the base object being inspected.Returns the current stack frame for the debugger.booleanReturns true if the context is collecting methods.booleanReturns true if the context is collecting properties.
-
Constructor Details
-
VariableContext
public VariableContext(Object base, RemoteStackFrame stackFrame, VariablesRegistry variablesRegistry, Collection<org.eclipse.lsp4j.debug.Variable> variables)
-
-
Method Details
-
getBase
Description copied from interface:ValueResolverContextReturns the base object being inspected.- Specified by:
getBasein interfaceValueResolverContext
-
getStackFrame
Description copied from interface:ValueResolverContextReturns the current stack frame for the debugger.- Specified by:
getStackFramein interfaceValueResolverContext
-
addMethod
Description copied from interface:ValueResolverContextRegisters a method to the context (for completion or variable tracking).- Specified by:
addMethodin interfaceValueResolverContext
-
addProperty
Description copied from interface:ValueResolverContextRegisters a field as a property in the context.- Specified by:
addPropertyin interfaceValueResolverContext
-
addProperty
Description copied from interface:ValueResolverContextRegisters a property by name.- Specified by:
addPropertyin interfaceValueResolverContext
-
addMethod
Description copied from interface:ValueResolverContextRegisters a method by name.- Specified by:
addMethodin interfaceValueResolverContext
-
isCollectProperty
public boolean isCollectProperty()Description copied from interface:ValueResolverContextReturns true if the context is collecting properties.- Specified by:
isCollectPropertyin interfaceValueResolverContext
-
isCollectMethod
public boolean isCollectMethod()Description copied from interface:ValueResolverContextReturns true if the context is collecting methods.- Specified by:
isCollectMethodin interfaceValueResolverContext
-