- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.onosproject.yang.compiler.linker.impl.YangResolutionInfoImpl.<init>()
方法的一些代码示例,展示了YangResolutionInfoImpl.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangResolutionInfoImpl.<init>()
方法的具体详情如下:
包路径:org.onosproject.yang.compiler.linker.impl.YangResolutionInfoImpl
类名称:YangResolutionInfoImpl
方法名:<init>
[英]It is private to ensure the overloaded method be invoked to create an object.
[中]它是私有的,用于确保调用重载方法来创建对象。
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
resolutionInfo = new YangResolutionInfoImpl<>(
idRef, (YangNode) parentNode, errLine, errPos);
addToResolution(resolutionInfo, ctx);
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
/**
* Performs validations and update the data model tree when parser exits
* from grammar rule (augment).
*
* @param listener listener's object
* @param ctx context object of the grammar rule
*/
public static void processAugmentExit(TreeWalkListener listener,
AugmentStatementContext ctx) {
//Check for stack to be non empty.
checkStackIsNotEmpty(listener, MISSING_HOLDER, AUGMENT_DATA,
ctx.augment().getText(), EXIT);
if (!(listener.getParsedDataStack().peek() instanceof YangAugment)) {
throw new ParserException(constructListenerErrorMessage(
MISSING_CURRENT_HOLDER, AUGMENT_DATA,
ctx.augment().getText(), EXIT));
}
YangAugment augment = (YangAugment) listener.getParsedDataStack().pop();
boolean isDup = isDuplicateNode(augment);
if (isDup) {
removeAugment(augment);
} else {
Token txt = ctx.getStart();
YangResolutionInfoImpl<YangAugment> info =
new YangResolutionInfoImpl<>(augment, augment.getParent(),
txt.getLine(),
txt.getCharPositionInLine());
addToResolution(info, ctx);
}
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-linker
new YangResolutionInfoImpl<>(type, (YangNode) leavesHolder,
type.getLineNumber(), type.getCharPosition());
try {
new YangResolutionInfoImpl<>(identityRef, (YangNode) leavesHolder,
identityRef.getLineNumber(),
identityRef.getCharPosition());
new YangResolutionInfoImpl<>(type, (YangNode) leavesHolder,
type.getLineNumber(), type.getCharPosition());
try {
new YangResolutionInfoImpl<>(identityRef, (YangNode) leavesHolder,
identityRef.getLineNumber(),
identityRef.getCharPosition());
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
new YangResolutionInfoImpl<YangLeafRef>(leafRef, (YangNode) parentNodeOfLeaf,
errorLine, errorPosition);
addToResolutionList(resolutionInfo);
new YangResolutionInfoImpl<YangLeafRef>(leafRef, (YangNode) parentNodeOfLeafList,
errorLine, errorPosition);
addToResolutionList(resolutionInfoImpl);
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
YangResolutionInfoImpl resolutionInfo = new YangResolutionInfoImpl<YangUses>(uses,
(YangNode) parentNode, errorLine,
errorPosition);
代码示例来源: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);
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-linker
/**
* Adds the unresolved entities to the resolution list.
*
* @param entityToResolve entity to resolve
* @throws DataModelException a violation of data model rules
*/
private void addUnresolvedEntitiesToResolutionList(T entityToResolve)
throws DataModelException {
if (entityToResolve instanceof YangEntityToResolveInfoImpl) {
YangEntityToResolveInfoImpl entityToResolveInfo
= (YangEntityToResolveInfoImpl) entityToResolve;
if (entityToResolveInfo.getEntityToResolve() instanceof YangLeafRef) {
YangLeafRef leafref = (YangLeafRef) entityToResolveInfo
.getEntityToResolve();
YangNode parentNodeOfLeafref = entityToResolveInfo
.getHolderOfEntityToResolve();
leafref.setParentNode(parentNodeOfLeafref);
if (leafref.getResolvableStatus() == UNRESOLVED) {
leafref.setResolvableStatus(INTRA_FILE_RESOLVED);
}
}
// Add resolution information to the list.
YangResolutionInfoImpl resolutionInfoImpl = new YangResolutionInfoImpl<>(
entityToResolveInfo.getEntityToResolve(),
entityToResolveInfo.getHolderOfEntityToResolve(),
entityToResolveInfo.getLineNumber(),
entityToResolveInfo.getCharPosition());
addResolutionInfo(resolutionInfoImpl);
}
}
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
YangResolutionInfoImpl resolutionInfo = new YangResolutionInfoImpl<YangIfFeature>(ifFeature,
(YangNode) parentNode,
errorLine, errorPosition);
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
new YangResolutionInfoImpl<>(deviation, deviation.getParent(),
line, charPositionInLine);
addToResolution(info, ctx);
代码示例来源:origin: org.onosproject/onos-yang-compiler-linker
new YangResolutionInfoImpl<YangType>(type, curNode, type.getLineNumber(),
type.getCharPosition());
try {
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
new YangResolutionInfoImpl<YangBase>(yangBase, (YangNode) tmpData, errorLine, errorPosition);
addToResolutionList(resolutionInfo, ctx);
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
YangResolutionInfoImpl resolutionInfo = new YangResolutionInfoImpl<>(
compilerAnnotation, (YangNode) curData, line, charPositionInLine);
addToResolutionList(resolutionInfo, ctx);
代码示例来源:origin: org.onosproject/onos-yang-compiler-parser
new YangResolutionInfoImpl<YangType>(
type, (YangNode) parentNodeOfLeaf, errorLine,
errorPosition);
new YangResolutionInfoImpl<YangType>(
type, (YangNode) parentNodeOfLeafList,
errorLine, errorPosition);
new YangResolutionInfoImpl<YangType>(
type, unionNode, errorLine, errorPosition);
addToResolutionList(resolutionInfo, ctx);
new YangResolutionInfoImpl<YangType>(
type, typeDef, errorLine, errorPosition);
addToResolutionList(resolutionInfo, ctx);
本文整理了Java中org.onosproject.yang.compiler.linker.impl.YangResolutionInfoImpl.()方法的一些代码示例,展示了YangResolu
我是一名优秀的程序员,十分优秀!