use of com.sun.jdi.BooleanValue in project intellij-community by JetBrains.
the class ExpressionChildrenRenderer method isExpandable.
public boolean isExpandable(Value value, final EvaluationContext context, NodeDescriptor parentDescriptor) {
final EvaluationContext evaluationContext = context.createEvaluationContext(value);
if (!StringUtil.isEmpty(myChildrenExpandable.getReferenceExpression().getText())) {
try {
Value expanded = myChildrenExpandable.getEvaluator(evaluationContext.getProject()).evaluate(evaluationContext);
if (expanded instanceof BooleanValue) {
return ((BooleanValue) expanded).booleanValue();
}
} catch (EvaluateException e) {
// ignored
}
}
try {
Value children = evaluateChildren(evaluationContext, parentDescriptor);
ChildrenRenderer defaultChildrenRenderer = DebugProcessImpl.getDefaultRenderer(value.type());
return defaultChildrenRenderer.isExpandable(children, evaluationContext, parentDescriptor);
} catch (EvaluateException e) {
return true;
}
}
Aggregations