Class Debugger.CapturingValueNode
java.lang.Object
uno.anahata.asi.intellij.tools.debugger.Debugger.CapturingValueNode
- All Implemented Interfaces:
com.intellij.xdebugger.frame.XValueNode, com.intellij.xdebugger.Obsolescent, org.jetbrains.concurrency.Obsolescent
- Enclosing class:
Debugger
private static final class Debugger.CapturingValueNode
extends Object
implements com.intellij.xdebugger.frame.XValueNode
An
XValueNode that captures a value's textual presentation into an
AtomicReference and releases a latch, bridging the asynchronous presentation callback
to the synchronous evaluate tool.- Author:
- anahata
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CountDownLatchReleased once a presentation has been captured.private final AtomicReference<String> Receives the rendered value text.Fields inherited from interface com.intellij.xdebugger.frame.XValueNode
MAX_VALUE_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionCapturingValueNode(AtomicReference<String> sink, CountDownLatch latch) Creates a capturing value node. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetFullValueEvaluator(com.intellij.xdebugger.frame.XFullValueEvaluator fullValueEvaluator) voidsetPresentation(Icon icon, com.intellij.xdebugger.frame.presentation.XValuePresentation presentation, boolean hasChildren) voidsetPresentation(Icon icon, String type, String value, boolean hasChildren) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.intellij.xdebugger.Obsolescent
isObsolete
-
Field Details
-
sink
Receives the rendered value text. -
latch
Released once a presentation has been captured.
-
-
Constructor Details
-
CapturingValueNode
CapturingValueNode(AtomicReference<String> sink, CountDownLatch latch) Creates a capturing value node.- Parameters:
sink- the reference to populate with the rendered value.latch- the latch to release once the value is captured.
-
-
Method Details
-
setPresentation
-
setPresentation
public void setPresentation(Icon icon, com.intellij.xdebugger.frame.presentation.XValuePresentation presentation, boolean hasChildren) - Specified by:
setPresentationin interfacecom.intellij.xdebugger.frame.XValueNode
-
setFullValueEvaluator
public void setFullValueEvaluator(com.intellij.xdebugger.frame.XFullValueEvaluator fullValueEvaluator) - Specified by:
setFullValueEvaluatorin interfacecom.intellij.xdebugger.frame.XValueNode
-

