gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-15 07:59:31 26 4
gpt4 key购买 nike

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

YangReferenceResolver.addToResolutionList介绍

[英]Adds to the resolution list.
[中]添加到解决方案列表中。

代码示例

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

root.addToResolutionList(resInfo, YANG_DERIVED_DATA_TYPE);
} else if (en instanceof YangUses) {
  root.addToResolutionList(resInfo, YANG_USES);
} else if (en instanceof YangAugment) {
  if (entity.getHolderOfEntityToResolve() instanceof YangUses) {
    root.addToResolutionList(resInfo, YANG_USES_AUGMENT);
  } else {
    root.addToResolutionList(resInfo, YANG_AUGMENT);
  root.addToResolutionList(resInfo, YANG_IF_FEATURE);
} else if (en instanceof YangLeafRef) {
  root.addToResolutionList(resInfo, YANG_LEAFREF);
} else if (en instanceof YangBase) {
  root.addToResolutionList(resInfo, YANG_BASE);
} else if (en instanceof YangIdentityRef) {
  root.addToResolutionList(resInfo, YANG_IDENTITYREF);
} else if (en instanceof YangCompilerAnnotation) {
  root.addToResolutionList(resInfo, YANG_COMPILER_ANNOTATION);
} else if (en instanceof YangDeviation) {
  root.addToResolutionList(resInfo, YANG_DEVIATION);

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

/**
 * Adds resolvable type (leaf-ref) info to resolution list.
 *
 * @param extType resolvable type
 * @param type    YANG type
 * @param holder  holder node
 * @throws DataModelException if there is a data model error
 */
private void addRefTypeInfo(T extType, YangType<T> type, YangNode holder)
    throws DataModelException {
  type.resetYangType();
  type.setResolvableStatus(RESOLVED);
  type.setDataType(YangDataTypes.LEAFREF);
  type.setDataTypeName(LEAFREF);
  type.setDataTypeExtendedInfo(extType);
  YangLeafRef leafRef = (YangLeafRef) extType;
  (leafRef).setResolvableStatus(UNRESOLVED);
  leafRef.setParentNode(holder);
  YangResolutionInfoImpl info = new YangResolutionInfoImpl<>(
      leafRef, holder, getLineNumber(), getCharPosition());
  curRefResolver.addToResolutionList(info, YANG_LEAFREF);
  curRefResolver.resolveSelfFileLinking(YANG_LEAFREF);
}

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