本文整理了Java中org.onosproject.yang.compiler.datamodel.YangType.getLineNumber()
方法的一些代码示例,展示了YangType.getLineNumber()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangType.getLineNumber()
方法的具体详情如下:
包路径:org.onosproject.yang.compiler.datamodel.YangType
类名称:YangType
方法名:getLineNumber
暂无
代码示例来源:origin: org.onosproject/onos-yang-compiler-datamodel
YangRangeInterval rangeInterval = rangeListIterator.next();
rangeInterval.setFileName(getFileName());
rangeInterval.setLineNumber(getLineNumber());
rangeInterval.setCharPosition(getCharPosition());
BigInteger startValue = ((YangUint64) rangeInterval.getStartValue()).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.getLineNumber() + " at " +
dataType.getCharPosition() +
" in " + dataType.getFileName() + "\"");
代码示例来源:origin: org.onosproject/onos-yang-compiler-datamodel
throw new DataModelException("Could not clone Type node " +
leaf.getDataType().getDataTypeName() + " in " +
leaf.getDataType().getLineNumber() + " at " +
leaf.getDataType().getCharPosition() +
" in " + leaf.getDataType().getFileName() + "\"");
throw new DataModelException("Could not clone Type node " +
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
new YangResolutionInfoImpl<YangType>(type, curNode, type.getLineNumber(),
type.getCharPosition());
try {
内容来源于网络,如有侵权,请联系作者删除!