gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-16 04:21:31 27 4
gpt4 key购买 nike

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

YangType.getCharPosition介绍

暂无

代码示例

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

rangeInterval.setFileName(getFileName());
rangeInterval.setLineNumber(getLineNumber());
rangeInterval.setCharPosition(getCharPosition());
BigInteger startValue = ((YangUint64) rangeInterval.getStartValue()).getValue();
BigInteger endValue = ((YangUint64) rangeInterval.getEndValue()).getValue();

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

/**
 * Returns resolvable entity when the type is derived. It sets needed
 * information to entity such as line number,position number and holder.
 * Returns null when identity is for inter grouping.
 *
 * @param type   derived YANG type
 * @param holder holder node
 * @param isLeaf leaf or leaf-list
 * @return entity to resolve for derived type
 */
private static YangEntityToResolveInfoImpl getDerivedResolvableEntity(
    YangType<?> type, YangNode holder, boolean isLeaf) {
  YangEntityToResolveInfoImpl<YangType<?>> derivedInfo =
      new YangEntityToResolveInfoImpl<>();
  if (type.isTypeForInterFileGroupingResolution()) {
    return null;
  }
  if (!isLeaf && type.isTypeNotResolvedTillRootNode()) {
    return null;
  }
  derivedInfo.setEntityToResolve(type);
  return setInformationInEntity(
      derivedInfo, holder, type.getCharPosition(),
      type.getLineNumber());
}

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

@Override
public Object resolve()
    throws DataModelException {
  /*
   * Check whether the data type is derived.
   */
  if (getDataType() != DERIVED) {
    throw new DataModelException("Linker Error: Resolve should only be called for derived data types. "
                       + " in " +
                       getLineNumber() + " at " +
                       getCharPosition()
                       + " in " + getFileName() + "\"");
  }
  // Check if the derived info is present.
  YangDerivedInfo<?> derivedInfo = (YangDerivedInfo<?>) getDataTypeExtendedInfo();
  if (derivedInfo == null) {
    throw new DataModelException("Linker Error: Derived information is missing. " + " in " +
                       getLineNumber() + " at " +
                       getCharPosition()
                       + " in " + getFileName() + "\"");
  }
  // Initiate the resolution
  try {
    setResolvableStatus(derivedInfo.resolve());
  } catch (DataModelException e) {
    throw new DataModelException(e.getMessage());
  }
  return null;
}

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

dataType.getDataTypeName() + " in " +
dataType.getLineNumber() + " at " +
dataType.getCharPosition() +
" in " + dataType.getFileName() + "\"");

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

leaf.getDataType().getDataTypeName() + " in " +
leaf.getDataType().getLineNumber() + " at " +
leaf.getDataType().getCharPosition() +
" in " + leaf.getDataType().getFileName() + "\"");
leafList.getDataType().getDataTypeName() + " in " +
leafList.getDataType().getLineNumber() + " at " +
leafList.getDataType().getCharPosition() +
" in " + leafList.getDataType().getFileName() + "\"");

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

type.getLineNumber(), type.getCharPosition());
try {
  addResolutionInfo(resolutionInfo);
                       type.getLineNumber(), type.getCharPosition());
try {
  addResolutionInfo(resolutionInfo);

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

type.getCharPosition());
try {
  addResolutionInfo(resolutionInfo);

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