本文整理汇总了Java中net.sf.saxon.functions.FunctionLibrary类的典型用法代码示例。如果您正苦于以下问题:Java FunctionLibrary类的具体用法?Java FunctionLibrary怎么用?Java FunctionLibrary使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FunctionLibrary类属于net.sf.saxon.functions包,在下文中一共展示了FunctionLibrary类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: lookupFunctions
import net.sf.saxon.functions.FunctionLibrary; //导入依赖的package包/类
private <R> List<R> lookupFunctions(FunctionLibraryList fll, FunctionExtractor<R> ext) {
List<R> fl = new ArrayList<>();
for (FunctionLibrary lib: fll.getLibraryList()) {
logger.trace("lookupFunctions; function library: {}; class: {}", lib.toString(), lib.getClass().getName());
if (lib instanceof FunctionLibraryList) {
fl.addAll(lookupFunctions((FunctionLibraryList) lib, ext));
//} else if (lib instanceof ExecutableFunctionLibrary) {
// ExecutableFunctionLibrary efl = (ExecutableFunctionLibrary) lib;
// Iterator<UserFunction> itr = efl.iterateFunctions();
// while (itr.hasNext()) {
// fl.add(getFunctionDeclaration(itr.next()));
// }
} else if (lib instanceof XQueryFunctionLibrary) {
XQueryFunctionLibrary xqfl = (XQueryFunctionLibrary) lib;
Iterator<XQueryFunction> itr = xqfl.getFunctionDefinitions();
while (itr.hasNext()) {
XQueryFunction fn = itr.next();
logger.trace("lookupFunctions; fn: {}", fn.getDisplayName());
R result = ext.extractFunction(fn.getUserFunction());
if (result != null) {
fl.add(result);
}
}
}
}
return fl;
}
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:28,代码来源:XQCompilerImpl.java
示例2: getFunctionLibrary
import net.sf.saxon.functions.FunctionLibrary; //导入依赖的package包/类
@Override
public FunctionLibrary getFunctionLibrary() {
return new FunctionLibraryWrapper(myElement);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:Saxon9StyleFrame.java
示例3: copy
import net.sf.saxon.functions.FunctionLibrary; //导入依赖的package包/类
public FunctionLibrary copy() {
return this;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:Saxon9StyleFrame.java
示例4: getFunctionLibrary
import net.sf.saxon.functions.FunctionLibrary; //导入依赖的package包/类
@Override
public FunctionLibrary getFunctionLibrary() {
return original.getFunctionLibrary();
}
开发者ID:ligasgr,项目名称:intellij-xquery,代码行数:5,代码来源:SaxonExpressionEvaluator.java
示例5: copy
import net.sf.saxon.functions.FunctionLibrary; //导入依赖的package包/类
public FunctionLibrary copy() {
return new TEFunctionLibrary(config, index);
}
开发者ID:opengeospatial,项目名称:teamengine,代码行数:4,代码来源:TEFunctionLibrary.java
注:本文中的net.sf.saxon.functions.FunctionLibrary类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论