本文整理汇总了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);
}
示例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;
}
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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));
}
}