本文整理汇总了Java中org.opendaylight.yangtools.yang.model.api.meta.StatementSource.DECLARATION属性的典型用法代码示例。如果您正苦于以下问题:Java StatementSource.DECLARATION属性的具体用法?Java StatementSource.DECLARATION怎么用?Java StatementSource.DECLARATION使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.opendaylight.yangtools.yang.model.api.meta.StatementSource
的用法示例。
在下文中一共展示了StatementSource.DECLARATION属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: maybeReplace
static TypeStatement maybeReplace(final TypeStatementImpl orig) {
if (orig.declaredSubstatements().isEmpty() && orig.getStatementSource() == StatementSource.DECLARATION
&& orig.statementDefinition() == YangStmtMapping.TYPE) {
final BuiltinTypeStatement builtin = BUILTINS.get(orig.argument());
if (builtin != null) {
return builtin;
}
}
return orig;
}
示例2: isExplicitStatement
private static boolean isExplicitStatement(final ContainerSchemaNode node) {
return (node instanceof EffectiveStatement)
&& (((EffectiveStatement) node).getDeclared().getStatementSource() == StatementSource.DECLARATION);
}
示例3: isExplicitStatement
private static boolean isExplicitStatement(final DeclaredStatement<?> stmt) {
return stmt != null && stmt.getStatementSource() == StatementSource.DECLARATION;
}
示例4: getStatementSource
@Nonnull
@Override
public final StatementSource getStatementSource() {
return StatementSource.DECLARATION;
}
示例5: getStatementSource
@Nonnull
@Override
public StatementSource getStatementSource() {
return StatementSource.DECLARATION;
}
示例6: getStatementSource
@Override
public StatementSource getStatementSource() {
return StatementSource.DECLARATION;
}