当前位置: 首页>>代码示例>>Java>>正文


Java XValueChildrenList.size方法代码示例

本文整理汇总了Java中com.intellij.xdebugger.frame.XValueChildrenList.size方法的典型用法代码示例。如果您正苦于以下问题:Java XValueChildrenList.size方法的具体用法?Java XValueChildrenList.size怎么用?Java XValueChildrenList.size使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.xdebugger.frame.XValueChildrenList的用法示例。


在下文中一共展示了XValueChildrenList.size方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addChildren

import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
@Override
protected void addChildren(@NotNull final XCompositeNode node,
                           @Nullable final XValueChildrenList children) {
  if (children == null) {
    node.addChildren(XValueChildrenList.EMPTY, true);
    return;
  }
  final Map<String, XValue> specialValues = new HashMap<String, XValue>();
  XValueChildrenList filteredChildren = new XValueChildrenList();
  for (int i = 0; i < children.size(); i++) {
    String name = children.getName(i);
    XValue value = children.getValue(i);
    if (name.startsWith(DOUBLE_UNDERSCORE) && name.endsWith(DOUBLE_UNDERSCORE)) {
      specialValues.put(name, value);
      continue;
    }
    filteredChildren.add(name, value);
  }
  node.addChildren(filteredChildren, specialValues.isEmpty());
  if (specialValues.isEmpty()) {
    return;
  }
  addSpecialVars(node, specialValues);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:25,代码来源:PyEduStackFrame.java

示例2: applyNewValue

import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
private XValueChildrenList applyNewValue(XValueChildrenList pyDebugValues, String threadFrameId) {
  if (myNewVariableValue.containsKey(threadFrameId)) {
    PyDebugValue newValue = myNewVariableValue.get(threadFrameId);
    XValueChildrenList res = new XValueChildrenList();
    for (int i = 0; i < pyDebugValues.size(); i++) {
      final String name = pyDebugValues.getName(i);
      if (name.equals(newValue.getName())) {
        res.add(name, newValue);
      }
      else {
        res.add(name, pyDebugValues.getValue(i));
      }
    }
    return res;
  }
  else {
    return pyDebugValues;
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:PyDebugProcess.java

示例3: addChildren

import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
@Override
public void addChildren(@NotNull XValueChildrenList children, boolean last) {
  final List<XValue> list = new ArrayList<XValue>();
  for (int i = 0; i < children.size(); i++) {
    list.add(children.getValue(i));
  }
  addChildren(list, last);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:XTestCompositeNode.java

示例4: getValue

import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
protected PyDebugValue getValue(String varName) throws PyDebuggerException {
  XValueChildrenList l = myCommunication.loadFrame();

  if (l == null) {
    return null;
  }
  for (int i = 0; i < l.size(); i++) {
    String name = l.getName(i);
    if (varName.equals(name)) {
      return (PyDebugValue)l.getValue(i);
    }
  }

  return null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:PyConsoleTask.java

示例5: getCompoundValueChildren

import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
protected List<String> getCompoundValueChildren(PyDebugValue value) throws PyDebuggerException {
  XValueChildrenList list = myCommunication.loadVariable(value);
  List<String> result = Lists.newArrayList();
  for (int i = 0; i < list.size(); i++) {
    result.add(((PyDebugValue)list.getValue(i)).getValue());
  }
  return result;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:PyConsoleTask.java

示例6: addChildren

import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
@Override
public void addChildren(@Nonnull XValueChildrenList children, boolean last) {
  final List<XValue> list = new ArrayList<XValue>();
  for (int i = 0; i < children.size(); i++) {
    list.add(children.getValue(i));
  }
  addChildren(list, last);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:9,代码来源:XTestCompositeNode.java

示例7: addChildren

import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
@Override
public void addChildren(XValueChildrenList children, boolean last) {
  for (int i = 0; i < children.size(); i++) {
    seenChildren.add(children.getName(i));
  }
}
 
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:7,代码来源:CloudExecutionStackTest.java


注:本文中的com.intellij.xdebugger.frame.XValueChildrenList.size方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。