gpt4 book ai didi

com.intellij.xdebugger.frame.XValueChildrenList类的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 11:24:40 31 4
gpt4 key购买 nike

本文整理了Java中com.intellij.xdebugger.frame.XValueChildrenList类的一些代码示例,展示了XValueChildrenList类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XValueChildrenList类的具体详情如下:
包路径:com.intellij.xdebugger.frame.XValueChildrenList
类名称:XValueChildrenList

XValueChildrenList介绍

暂无

代码示例

代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin

@Override
public void computeChildren(@NotNull XCompositeNode node) {
 DlvApi.Variable[] children = myVariable.children;
 if (children.length == 0) {
  super.computeChildren(node);
 }
 else {
  XValueChildrenList list = new XValueChildrenList();
  for (DlvApi.Variable child : children) {
   list.add(child.name, new DlvXValue(myProcess, child, myProcessor, myFrameId, AllIcons.Nodes.Field));
  }
  node.addChildren(list, true);
 }
}

代码示例来源:origin: ballerina-platform/ballerina-lang

XValueChildrenList xValueChildrenList = new XValueChildrenList();
xValueChildrenList.addBottomGroup(new BallerinaXValueGroup(myProcess, myFrame, scopeName, scopeVariable));

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

@Override
public void computeChildren(@NotNull XCompositeNode node) {
 final XValueChildrenList list = new XValueChildrenList();
 List<Variable> arguments = frame.getArguments();
 if (arguments != null && arguments.size() > 0) {
  for (Variable variable : arguments) {
   if (!Strings.isNullOrEmpty(variable.getName())) {
    list.add(variable.getName(), new MyValue(variable, variableTable));
   }
  }
 }
 List<Variable> locals = frame.getLocals();
 if (locals != null && locals.size() > 0) {
  for (Variable variable : locals) {
   if (!Strings.isNullOrEmpty(variable.getName())) {
    list.add(variable.getName(), new MyValue(variable, variableTable));
   }
  }
 }
 if (evaluatedExpressions != null && evaluatedExpressions.size() > 0) {
  list.addTopGroup(new CustomWatchGroup());
 }
 node.addChildren(list, true);
}

代码示例来源:origin: Camelcade/Perl5-IDEA

XValueChildrenList list = new XValueChildrenList();
 list.addTopGroup(new PerlXValueGroup("Global variables", "our", PerlIcons.OUR_GUTTER_ICON, globals, this, false));
 fallback = false;
 list.addTopGroup(new PerlXMainGroup(this, mainSize));
 fallback = false;
 list.addTopGroup(new PerlXValueGroup("Arguments", null, PerlIcons.ARGS_GUTTER_ICON, args, this, true));
 fallback = false;
 list.addTopGroup(new PerlXValueGroup("Lexical variables", "my/state", PerlIcons.MY_GUTTER_ICON, lexicals, this, true));
 fallback = false;

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

@Override
public void addChildren(XValueChildrenList children, boolean last) {
 for (int i = 0; i < children.size(); i++) {
  seenChildren.add(children.getName(i));
 }
}

代码示例来源:origin: Camelcade/Perl5-IDEA

@Override
 public void computeChildren(@NotNull XCompositeNode node) {
  node.addChildren(XValueChildrenList.singleton(myPerlXNamedValue), true);
 }
}

代码示例来源:origin: Camelcade/Perl5-IDEA

@Override
public void computeChildren(@NotNull XCompositeNode node) {
 boolean isExpandable = myPerlValueDescriptor.isExpandable();
 PerlLayersDescriptor layers = myPerlValueDescriptor.getLayers();
 PerlValueDescriptor tiedWith = myPerlValueDescriptor.getTiedWith();
 if (!isExpandable && layers == null && tiedWith == null || StringUtil.isEmpty(myPerlValueDescriptor.getKey())) {
  super.computeChildren(node);
 }
 XValueChildrenList childrenList = new XValueChildrenList();
 if (layers != null) {
  childrenList.add(new PerlXLayersNamedValue(layers));
 }
 if (tiedWith != null) {
  childrenList.addTopGroup(new PerlTiedNamedValue(tiedWith, myStackFrame));
 }
 node.addChildren(childrenList, !isExpandable);
 if (isExpandable) {
  PerlDebugUtil.requestAndComputeChildren(node, myStackFrame, offset, myPerlValueDescriptor.getSize(), myPerlValueDescriptor.getKey());
 }
}

代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin

@Override
 public void computeChildren(@NotNull XCompositeNode node) {
  send(new DlvRequest.ListLocalVars(myId)).done(variables -> {
   XValueChildrenList xVars = new XValueChildrenList(variables.size());
   for (DlvApi.Variable v : variables) xVars.add(v.name, createXValue(v, GoIcons.VARIABLE));
   send(new DlvRequest.ListFunctionArgs(myId)).done(args -> {
    for (DlvApi.Variable v : args) xVars.add(v.name, createXValue(v, GoIcons.PARAMETER));
    node.addChildren(xVars, true);
   });
  });
 }
}

代码示例来源:origin: ballerina-platform/ballerina-lang

@Override
public void computeChildren(@NotNull XCompositeNode node) {
  List<Variable> children = myVariable.getChildren();
  if (children == null) {
    super.computeChildren(node);
  } else {
    XValueChildrenList list = new XValueChildrenList();
    for (Variable child : children) {
      list.add(child.getName(), new BallerinaXValue(myProcess, myFrameName, child, AllIcons.Nodes.Field));
    }
    node.addChildren(list, true);
  }
}

代码示例来源:origin: ballerina-platform/ballerina-lang

@Override
  public void computeChildren(@NotNull XCompositeNode node) {
    List<Variable> children = myVariable.getChildren();
    if (children == null) {
      super.computeChildren(node);
    } else {
      XValueChildrenList list = new XValueChildrenList();
      for (Variable child : children) {
        list.add(child.getName(), new BallerinaXValue(myProcess, myFrame.getFrameName(), child,
            AllIcons.Nodes.Field));
      }
      node.addChildren(list, true);
    }
  }
}

代码示例来源:origin: Camelcade/Perl5-IDEA

@Override
public void computeChildren(@NotNull XCompositeNode node) {
 XValueChildrenList childrenList = new XValueChildrenList();
 int index = 0;
 for (PerlLayerDescriptor descriptor : myLayersDescriptors) {
  childrenList.add(new PerlLayer(index++, descriptor));
 }
 node.addChildren(childrenList, true);
}

代码示例来源:origin: Camelcade/Perl5-IDEA

@Override
 public void run(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext) {
  PerlValueDescriptor[] descriptors = jsonDeserializationContext.deserialize(
   jsonObject.getAsJsonArray("data"), PerlValueDescriptor[].class
  );
  XValueChildrenList list = new XValueChildrenList();
  for (PerlValueDescriptor descriptor : descriptors) {
   list.add(new PerlXNamedValue(descriptor, perlStackFrame));
   offset[0]++;
  }
  boolean isLast = offset[0] >= size;
  node.addChildren(list, isLast);
  if (!isLast) {
   node.tooManyChildren(size - offset[0]);
  }
 }
});

代码示例来源:origin: Camelcade/Perl5-IDEA

@Override
public void computeChildren(@NotNull XCompositeNode node) {
 XValueChildrenList childrenList = new XValueChildrenList();
 List<PerlLayerDescriptor> input = myLayersDescriptor.getInput();
 if (input != null) {
  childrenList.add(new PerlLayers("Input", AllIcons.ToolbarDecorator.Import, input));
 }
 List<PerlLayerDescriptor> output = myLayersDescriptor.getOutput();
 if (output != null) {
  childrenList.add(new PerlLayers("Output", AllIcons.ToolbarDecorator.Export, output));
 }
 node.addChildren(childrenList, true);
}

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

@Override
public void computeChildren(@NotNull XCompositeNode node) {
 final XValueChildrenList list = new XValueChildrenList();
 if (members != null && members.size() > 0) {
  for (Variable variable : members) {
   if (!Strings.isNullOrEmpty(variable.getName())) {
    list.add(variable.getName(), new MyValue(variable, variableTable));
   }
  }
 }
 node.addChildren(list, true);
}

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

@Override
public void computeChildren(@NotNull XCompositeNode node) {
 final XValueChildrenList list = new XValueChildrenList();
 if (evaluatedExpressions != null && evaluatedExpressions.size() > 0) {
  for (Variable variable : evaluatedExpressions) {
   if (!Strings.isNullOrEmpty(variable.getName())) {
    list.add(variable.getName(), new MyValue(variable, variableTable));
   }
  }
 }
 node.addChildren(list, true);
}

代码示例来源:origin: Camelcade/Perl5-IDEA

@Override
public void computeChildren(@NotNull XCompositeNode node) {
 if (myVariables.length == 0) {
  super.computeChildren(node);
 }
 else {
  XValueChildrenList list = new XValueChildrenList();
  for (PerlValueDescriptor descriptor : myVariables) {
   list.add(new PerlXNamedValue(descriptor, myStackFrame));
  }
  node.setAlreadySorted(true);
  node.addChildren(list, true);
 }
}

代码示例来源:origin: intellij-dlanguage/intellij-dlanguage

XValueChildrenList children = new XValueChildrenList(variables.objects.size());
for (GdbVariableObject variable : variables.objects) {
  children.add(variable.expression, new GdbValue(m_gdb, variable));

代码示例来源:origin: intellij-dlanguage/intellij-dlanguage

/**
 * Callback function for when GDB has responded to our children request.
 *
 * @param event The event.
 * @param node  The node passed to computeChildren().
 */
private void onGdbChildrenReady(GdbEvent event, final XCompositeNode node) {
  if (event instanceof GdbErrorEvent) {
    node.setErrorMessage(((GdbErrorEvent) event).message);
    return;
  }
  if (!(event instanceof GdbVariableObjects)) {
    node.setErrorMessage("Unexpected data received from GDB");
    m_log.warn("Unexpected event " + event + " received from -var-list-children request");
    return;
  }
  // Inspect the data
  GdbVariableObjects variables = (GdbVariableObjects) event;
  if (variables.objects == null || variables.objects.isEmpty()) {
    // No data
    node.addChildren(XValueChildrenList.EMPTY, true);
    return;
  }
  // Build a XValueChildrenList
  XValueChildrenList children = new XValueChildrenList(variables.objects.size());
  for (GdbVariableObject variable : variables.objects) {
    children.add(variable.expression, new GdbValue(m_gdb, variable));
  }
  node.addChildren(children, true);
}

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com