gpt4 book ai didi

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

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

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

YangCase.setName介绍

暂无

代码示例

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

node.setParent(null);
YangCase javaCase = getYangCaseNode(JAVA_GENERATION);
javaCase.setName(node.getName());
for (YangLeaf leaf : augment.getListOfLeaf()) {
  YangCase javaCase = getYangCaseNode(JAVA_GENERATION);
  javaCase.setName(leaf.getName());
  javaCase.addLeaf(leaf);
  augment.addChild(javaCase);
for (YangLeafList leafList : augment.getListOfLeafList()) {
  YangCase javaCase = getYangCaseNode(JAVA_GENERATION);
  javaCase.setName(leafList.getName());
  javaCase.addLeafList(leafList);
  augment.addChild(javaCase);

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

caseNode.setFileName(listener.getFileName());
if (ctx.containerStatement() != null) {
  caseNode.setName(getValidIdentifier(ctx.containerStatement().identifier().getText(), CASE_DATA, ctx));
  errorConstructContext = ctx.containerStatement();
} else if (ctx.listStatement() != null) {
  caseNode.setName(getValidIdentifier(ctx.listStatement().identifier().getText(), CASE_DATA, ctx));
  errorConstructContext = ctx.listStatement();
} else if (ctx.leafListStatement() != null) {
  caseNode.setName(getValidIdentifier(ctx.leafListStatement().identifier().getText(), CASE_DATA, ctx));
  errorConstructContext = ctx.leafListStatement();
} else if (ctx.leafStatement() != null) {
  caseNode.setName(getValidIdentifier(ctx.leafStatement().identifier().getText(), CASE_DATA, ctx));
  errorConstructContext = ctx.leafStatement();
} else if (ctx.anyxmlStatement() != null) {

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

caseNode.setName(identifier);
caseNode.setLineNumber(line);
caseNode.setCharPosition(charPositionInLine);

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