gpt4 book ai didi

org.onosproject.yang.compiler.datamodel.YangAugment.getChild()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 17:37:31 28 4
gpt4 key购买 nike

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

YangAugment.getChild介绍

暂无

代码示例

代码示例来源:origin: org.onosproject/onos-yang-compiler-parser

/**
 * Checks if the augment node is a duplicate node. If the augment is
 * duplicate, then it adds all its children to the logical node.
 *
 * @param augment YANG augment
 * @return true if it is a duplicate node; false otherwise
 */
public static boolean isDuplicateNode(YangAugment augment) {
  YangAugment logical = augment.getLogicalNode();
  if (logical == null) {
    return false;
  }
  YangNode lastChild = logical;
  YangNode child = logical.getChild();
  while (child != null) {
    lastChild = child;
    child = child.getNextSibling();
  }
  addChildToLogicalNode(logical, augment, lastChild);
  addLeafAndLeafList(logical, augment);
  return true;
}

代码示例来源:origin: org.onosproject/onos-yang-compiler-linker

YangNode aChild = aug.getChild();
YangNode tChild = tgt.getChild();
List<YangLeaf> aL = aug.getListOfLeaf();

代码示例来源:origin: org.onosproject/onos-yang-compiler-parser

YangAugment augment,
                   YangNode lastChild) {
YangNode augChild = augment.getChild();
while (augChild != null) {
  if (lastChild == logical) {

代码示例来源:origin: org.onosproject/onos-yang-compiler-linker

YangNode child = augment.getChild();
List<YangNode> childNodes = new ArrayList<>();
List<YangNode> caseNodes = new ArrayList<>();

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