- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangFunctionCallExpr.of()
方法的一些代码示例,展示了YangFunctionCallExpr.of()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangFunctionCallExpr.of()
方法的具体详情如下:
包路径:org.opendaylight.yangtools.yang.xpath.api.YangFunctionCallExpr
类名称:YangFunctionCallExpr
方法名:of
暂无
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr normalizeSpaceExpr(final List<YangExpr> args) {
checkArgument(args.size() <= 1, "number(object?) takes at most one argument");
if (args.isEmpty()) {
return NORMALIZE_SPACE;
}
final YangExpr arg = args.get(0);
if (arg instanceof YangLiteralExpr) {
// TODO: normalize value
}
return YangFunctionCallExpr.of(YangFunction.NORMALIZE_SPACE.getIdentifier(), args);
}
代码示例来源:origin: opendaylight/yangtools
private static YangExpr startsWithExpr(final List<YangExpr> args) {
checkArgument(args.size() == 2, "starts-with(string, string) takes two arguments");
// TODO: constant folding
return YangFunctionCallExpr.of(YangFunction.STARTS_WITH.getIdentifier(), args);
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr numberExpr(final List<YangExpr> args) {
checkArgument(args.size() <= 1, "number(object?) takes at most one argument");
if (args.isEmpty()) {
return NUMBER;
}
final YangExpr arg = args.get(0);
if (arg instanceof YangNumberExpr) {
return arg;
}
// TODO: constant literal folding requires math support
return YangFunctionCallExpr.of(YangFunction.NUMBER.getIdentifier(), args);
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr substringBeforeExpr(final List<YangExpr> args) {
checkArgument(args.size() == 2, "substring-before(string, string) takes two arguments");
// TODO: constant folding
return YangFunctionCallExpr.of(YangFunction.SUBSTRING_BEFORE.getIdentifier(), args);
}
代码示例来源:origin: opendaylight/yangtools
private static YangExpr substringBeforeExpr(final List<YangExpr> args) {
checkArgument(args.size() == 2, "substring-before(string, string) takes two arguments");
// TODO: constant folding
return YangFunctionCallExpr.of(YangFunction.SUBSTRING_BEFORE.getIdentifier(), args);
}
代码示例来源:origin: opendaylight/yangtools
private static YangExpr stringLengthExpr(final List<YangExpr> args) {
checkArgument(args.size() <= 1, "string(object?) takes at most one argument");
if (args.isEmpty()) {
return STRING_LENGTH;
}
// TODO: constant literal requires math support
return YangFunctionCallExpr.of(YangFunction.STRING_LENGTH.getIdentifier(), args);
}
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr startsWithExpr(final List<YangExpr> args) {
checkArgument(args.size() == 2, "starts-with(string, string) takes two arguments");
// TODO: constant folding
return YangFunctionCallExpr.of(YangFunction.STARTS_WITH.getIdentifier(), args);
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr substringAfterExpr(final List<YangExpr> args) {
checkArgument(args.size() == 2, "substring-after(string, string) takes two arguments");
// TODO: constant folding
return YangFunctionCallExpr.of(YangFunction.SUBSTRING_AFTER.getIdentifier(), args);
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr stringExpr(final List<YangExpr> args) {
checkArgument(args.size() <= 1, "string(object?) takes at most one argument");
if (args.isEmpty()) {
return STRING;
}
final YangExpr arg = args.get(0);
if (arg instanceof YangLiteralExpr) {
return arg;
}
// TODO: handling YangNumberExpr requires math support
return YangFunctionCallExpr.of(YangFunction.STRING.getIdentifier(), args);
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr concatExpr(final List<YangExpr> args) {
checkArgument(args.size() >= 2, "concat(string, string, string*) takes at least two arguments");
// TODO: constant folding
return YangFunctionCallExpr.of(YangFunction.CONCAT.getIdentifier(), args);
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr substringExpr(final List<YangExpr> args) {
final int size = args.size();
checkArgument(size == 2 || size == 3, "substring-(string, number, number?) takes two or three arguments");
// TODO: constant folding
return YangFunctionCallExpr.of(YangFunction.SUBSTRING.getIdentifier(), args);
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-api
@SuppressWarnings("null")
YangBooleanConstantExpr(final @Nullable Boolean value, final YangFunction function) {
this.value = requireNonNull(value);
this.function = YangFunctionCallExpr.of(function.getIdentifier());
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr derivedFromExpr(final List<YangExpr> args) {
checkArgument(args.size() == 2, "derived-from(node-set, string) takes two arguments");
// FIXME: coerce second arg to a QName
return YangFunctionCallExpr.of(YangFunction.DERIVED_FROM.getIdentifier(), args);
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr derivedFromOrSelfExpr(final List<YangExpr> args) {
checkArgument(args.size() == 2, "derived-from-or-self(node-set, string) takes two arguments");
// FIXME: coerce second arg to a QName
return YangFunctionCallExpr.of(YangFunction.DERIVED_FROM_OR_SELF.getIdentifier(), args);
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr stringLengthExpr(final List<YangExpr> args) {
checkArgument(args.size() <= 1, "string(object?) takes at most one argument");
if (args.isEmpty()) {
return STRING_LENGTH;
}
// TODO: constant literal requires math support
return YangFunctionCallExpr.of(YangFunction.STRING_LENGTH.getIdentifier(), args);
}
}
代码示例来源:origin: opendaylight/yangtools
@SuppressWarnings("null")
YangBooleanConstantExpr(final @Nullable Boolean value, final YangFunction function) {
this.value = requireNonNull(value);
this.function = YangFunctionCallExpr.of(function.getIdentifier());
}
代码示例来源:origin: opendaylight/yangtools
private static YangExpr booleanExpr(final List<YangExpr> args) {
checkArgument(args.size() == 1, "boolean(object) takes one argument");
final YangExpr arg = args.get(0);
if (arg instanceof YangBooleanConstantExpr) {
return arg;
}
if (arg instanceof YangLiteralExpr) {
return YangBooleanConstantExpr.of(((YangLiteralExpr) arg).getLiteral().isEmpty());
}
// TODO: handling YangNumberExpr requires math support
return YangFunctionCallExpr.of(YangFunction.BOOLEAN.getIdentifier(), args);
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr booleanExpr(final List<YangExpr> args) {
checkArgument(args.size() == 1, "boolean(object) takes one argument");
final YangExpr arg = args.get(0);
if (arg instanceof YangBooleanConstantExpr) {
return arg;
}
if (arg instanceof YangLiteralExpr) {
return YangBooleanConstantExpr.of(((YangLiteralExpr) arg).getLiteral().isEmpty());
}
// TODO: handling YangNumberExpr requires math support
return YangFunctionCallExpr.of(YangFunction.BOOLEAN.getIdentifier(), args);
}
代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl
private static YangExpr notExpr(final List<YangExpr> args) {
checkArgument(args.size() == 1, "not(boolean) takes one argument");
final YangExpr arg = args.get(0);
if (arg instanceof YangBooleanConstantExpr) {
return YangBooleanConstantExpr.of(((YangBooleanConstantExpr) arg).getValue());
}
return YangFunctionCallExpr.of(YangFunction.NOT.getIdentifier(), args);
}
代码示例来源:origin: opendaylight/yangtools
private static YangExpr notExpr(final List<YangExpr> args) {
checkArgument(args.size() == 1, "not(boolean) takes one argument");
final YangExpr arg = args.get(0);
if (arg instanceof YangBooleanConstantExpr) {
return YangBooleanConstantExpr.of(((YangBooleanConstantExpr) arg).getValue());
}
return YangFunctionCallExpr.of(YangFunction.NOT.getIdentifier(), args);
}
本文整理了Java中org.opendaylight.yangtools.yang.binding.YangModuleInfo类的一些代码示例,展示了YangModuleInfo类的具体用法。这些代
本文整理了Java中org.opendaylight.yangtools.yang.common.YangVersion类的一些代码示例,展示了YangVersion类的具体用法。这些代码示例主要来源
本文整理了Java中org.opendaylight.yangtools.yang.binding.YangModelBindingProvider类的一些代码示例,展示了YangModelBindi
本文整理了Java中org.opendaylight.yangtools.yang.common.YangConstants类的一些代码示例,展示了YangConstants类的具体用法。这些代码示例
本文整理了Java中org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier类的一些代码示例,展示了YangInstanceIde
本文整理了Java中org.opendaylight.yangtools.yang.model.api.YangStmtMapping类的一些代码示例,展示了YangStmtMapping类的具体用法
本文整理了Java中org.opendaylight.yangtools.yang.parser.impl.YangParserImpl类的一些代码示例,展示了YangParserImpl类的具体用法
本文整理了Java中org.opendaylight.yangtools.yang.test.util.YangParserTestUtils类的一些代码示例,展示了YangParserTestUti
本文整理了Java中org.opendaylight.yangtools.yang.parser.repo.YangTextSchemaContextResolver类的一些代码示例,展示了YangT
本文整理了Java中org.opendaylight.yangtools.odlext.model.api.YangModeledAnyXmlSchemaNode类的一些代码示例,展示了YangMod
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangQNameExpr类的一些代码示例,展示了YangQNameExpr类的具体用法。这些代
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangFilterExpr类的一些代码示例,展示了YangFilterExpr类的具体用法。这
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangNegateExpr类的一些代码示例,展示了YangNegateExpr类的具体用法。这
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangFunctionCallExpr类的一些代码示例,展示了YangFunctionCall
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangLocationPath类的一些代码示例,展示了YangLocationPath类的具体
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangNaryExpr类的一些代码示例,展示了YangNaryExpr类的具体用法。这些代码示
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangFunction类的一些代码示例,展示了YangFunction类的具体用法。这些代码示
本文整理了Java中org.opendaylight.yangtools.yang.data.util.YangModeledAnyXmlNodeDataWithSchema类的一些代码示例,展示了Y
本文整理了Java中org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.of()方法的一些代码示例,展示了YangInsta
本文整理了Java中org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource类的一些代码示例,展示了YangTextSch
我是一名优秀的程序员,十分优秀!