- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中net.sf.saxon.sxpath.XPathStaticContext.getStackFrameMap()
方法的一些代码示例,展示了XPathStaticContext.getStackFrameMap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPathStaticContext.getStackFrameMap()
方法的具体详情如下:
包路径:net.sf.saxon.sxpath.XPathStaticContext
类名称:XPathStaticContext
方法名:getStackFrameMap
[英]Get a Stack Frame Map containing definitions of all the declared variables. This will return a newly created object that the caller is free to modify by adding additional variables, without affecting the static context itself.
[中]获取包含所有声明变量定义的堆栈帧映射。这将返回一个新创建的对象,调用者可以通过添加其他变量自由修改该对象,而不会影响静态上下文本身。
代码示例来源:origin: net.sourceforge.saxon/saxon
/**
* Prepare (compile) an XSLT pattern for subsequent evaluation. The result is an XPathExpression
* object representing a (pseudo-) expression that when evaluated returns a boolean result: true
* if the context node matches the pattern, false if it does not.
* @param pattern the XSLT pattern to be compiled, supplied as a string
* @return an XPathExpression object representing the pattern, wrapped as an expression
* @throws XPathException if the syntax of the expression is wrong, or if it references namespaces,
* variables, or functions that have not been declared.
* @since 9.1
*/
public XPathExpression createPattern(String pattern) throws XPathException {
Pattern pat = Pattern.make(pattern, staticContext, staticContext.getExecutable());
ExpressionVisitor visitor = ExpressionVisitor.make(staticContext);
pat.analyze(visitor, Type.NODE_TYPE);
SlotManager map = staticContext.getStackFrameMap();
int slots = map.getNumberOfVariables();
slots = pat.allocateSlots(staticContext, map, slots);
PatternSponsor sponsor = new PatternSponsor(pat);
XPathExpression xpe = new XPathExpression(this, sponsor);
xpe.setStackFrameMap(map, slots);
return xpe;
}
代码示例来源:origin: org.opengis.cite.saxon/saxon9
/**
* Prepare (compile) an XPath expression for subsequent evaluation.
* @param expression The XPath expression to be compiled, supplied as a string.
* @return an XPathExpression object representing the prepared expression
* @throws XPathException if the syntax of the expression is wrong, or if it references namespaces,
* variables, or functions that have not been declared.
*/
public XPathExpression createExpression(String expression) throws XPathException {
Expression exp = ExpressionTool.make(expression, staticContext, 0, -1, 1, false);
exp.setContainer(staticContext);
ExpressionVisitor visitor = ExpressionVisitor.make(staticContext);
visitor.setExecutable(getExecutable());
exp = visitor.typeCheck(exp, Type.ITEM_TYPE);
SlotManager map = staticContext.getStackFrameMap();
int numberOfExternalVariables = map.getNumberOfVariables();
ExpressionTool.allocateSlots(exp, numberOfExternalVariables, map);
XPathExpression xpe = new XPathExpression(this, exp);
xpe.setStackFrameMap(map, numberOfExternalVariables);
return xpe;
}
代码示例来源:origin: net.sourceforge.saxon/saxon
/**
* Prepare (compile) an XPath expression for subsequent evaluation.
* @param expression The XPath expression to be compiled, supplied as a string.
* @return an XPathExpression object representing the prepared expression
* @throws XPathException if the syntax of the expression is wrong, or if it references namespaces,
* variables, or functions that have not been declared.
*/
public XPathExpression createExpression(String expression) throws XPathException {
Expression exp = ExpressionTool.make(expression, staticContext, 0, -1, 1, false);
exp.setContainer(staticContext);
ExpressionVisitor visitor = ExpressionVisitor.make(staticContext);
visitor.setExecutable(getExecutable());
exp = visitor.typeCheck(exp, Type.ITEM_TYPE);
exp = visitor.optimize(exp, Type.ITEM_TYPE);
SlotManager map = staticContext.getStackFrameMap();
int numberOfExternalVariables = map.getNumberOfVariables();
ExpressionTool.allocateSlots(exp, numberOfExternalVariables, map);
XPathExpression xpe = new XPathExpression(this, exp);
xpe.setStackFrameMap(map, numberOfExternalVariables);
return xpe;
}
代码示例来源:origin: net.sf.saxon/Saxon-HE
/**
* Prepare (compile) an XSLT pattern for subsequent evaluation. The result is an XPathExpression
* object representing a (pseudo-) expression that when evaluated returns a boolean result: true
* if the context node matches the pattern, false if it does not.
*
* @param pattern the XSLT pattern to be compiled, supplied as a string
* @return an XPathExpression object representing the pattern, wrapped as an expression
* @throws XPathException if the syntax of the expression is wrong, or if it references namespaces,
* variables, or functions that have not been declared.
* @since 9.1
*/
/*@NotNull*/
public XPathExpression createPattern(String pattern) throws XPathException {
Configuration config = getConfiguration();
Executable exec = new Executable(config);
Pattern pat = Pattern.make(pattern, staticContext, new PackageData(config));
ExpressionVisitor visitor = ExpressionVisitor.make(staticContext);
pat.typeCheck(visitor, config.makeContextItemStaticInfo(Type.NODE_TYPE, true));
SlotManager map = staticContext.getStackFrameMap();
int slots = map.getNumberOfVariables();
slots = pat.allocateSlots(map, slots);
//PatternSponsor sponsor = new PatternSponsor(pat);
XPathExpression xpe = new XPathExpression(staticContext, pat, exec);
xpe.setStackFrameMap(map, slots);
return xpe;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon
/**
* Prepare (compile) an XSLT pattern for subsequent evaluation. The result is an XPathExpression
* object representing a (pseudo-) expression that when evaluated returns a boolean result: true
* if the context node matches the pattern, false if it does not.
*
* @param pattern the XSLT pattern to be compiled, supplied as a string
* @return an XPathExpression object representing the pattern, wrapped as an expression
* @throws XPathException if the syntax of the expression is wrong, or if it references namespaces,
* variables, or functions that have not been declared.
* @since 9.1
*/
/*@NotNull*/
public XPathExpression createPattern(String pattern) throws XPathException {
Configuration config = getConfiguration();
Executable exec = new Executable(config);
Pattern pat = Pattern.make(pattern, staticContext, new PackageData(config));
ExpressionVisitor visitor = ExpressionVisitor.make(staticContext);
pat.typeCheck(visitor, config.makeContextItemStaticInfo(Type.NODE_TYPE, true));
SlotManager map = staticContext.getStackFrameMap();
int slots = map.getNumberOfVariables();
slots = pat.allocateSlots(map, slots);
//PatternSponsor sponsor = new PatternSponsor(pat);
XPathExpression xpe = new XPathExpression(staticContext, pat, exec);
xpe.setStackFrameMap(map, slots);
return xpe;
}
代码示例来源:origin: net.sf.saxon/Saxon-HE
SlotManager map = staticContext.getStackFrameMap();
int numberOfExternalVariables = map.getNumberOfVariables();
ExpressionTool.allocateSlots(exp, numberOfExternalVariables, map);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon
SlotManager map = staticContext.getStackFrameMap();
int numberOfExternalVariables = map.getNumberOfVariables();
ExpressionTool.allocateSlots(exp, numberOfExternalVariables, map);
本文整理了Java中net.sf.saxon.sxpath.XPathStaticContext类的一些代码示例,展示了XPathStaticContext类的具体用法。这些代码示例主要来源于Gith
本文整理了Java中net.sf.saxon.sxpath.XPathVariable类的一些代码示例,展示了XPathVariable类的具体用法。这些代码示例主要来源于Github/Stackov
本文整理了Java中net.sf.saxon.sxpath.XPathStaticContext.getXPathVersion()方法的一些代码示例,展示了XPathStaticContext.ge
本文整理了Java中net.sf.saxon.sxpath.XPathStaticContext.getPackageData()方法的一些代码示例,展示了XPathStaticContext.get
本文整理了Java中net.sf.saxon.sxpath.XPathStaticContext.makeRetainedStaticContext()方法的一些代码示例,展示了XPathStatic
本文整理了Java中net.sf.saxon.sxpath.XPathStaticContext.getNamespaceResolver()方法的一些代码示例,展示了XPathStaticConte
本文整理了Java中net.sf.saxon.sxpath.XPathStaticContext.getStackFrameMap()方法的一些代码示例,展示了XPathStaticContext.g
本文整理了Java中net.sf.saxon.sxpath.XPathStaticContext.setNamespaceResolver()方法的一些代码示例,展示了XPathStaticConte
本文整理了Java中net.sf.saxon.sxpath.XPathStaticContext.declareVariable()方法的一些代码示例,展示了XPathStaticContext.de
本文整理了Java中net.sf.saxon.sxpath.XPathStaticContext.getRequiredContextItemType()方法的一些代码示例,展示了XPathStati
本文整理了Java中net.sf.saxon.sxpath.XPathStaticContext.getExecutable()方法的一些代码示例,展示了XPathStaticContext.getE
本文整理了Java中net.sf.saxon.sxpath.XPathStaticContext.getConfiguration()方法的一些代码示例,展示了XPathStaticContext.g
本文整理了Java中net.sf.saxon.sxpath.XPathVariable.()方法的一些代码示例,展示了XPathVariable.()的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中net.sf.saxon.sxpath.XPathVariable.setSlotNumber()方法的一些代码示例,展示了XPathVariable.setSlotNumber(
本文整理了Java中net.sf.saxon.sxpath.XPathVariable.setRequiredType()方法的一些代码示例,展示了XPathVariable.setRequiredT
本文整理了Java中net.sf.saxon.sxpath.XPathVariable.make()方法的一些代码示例,展示了XPathVariable.make()的具体用法。这些代码示例主要来源于
本文整理了Java中net.sf.saxon.sxpath.XPathVariable.getLocalSlotNumber()方法的一些代码示例,展示了XPathVariable.getLocalS
本文整理了Java中net.sf.saxon.sxpath.XPathVariable.getRequiredType()方法的一些代码示例,展示了XPathVariable.getRequiredT
本文整理了Java中net.sf.saxon.sxpath.XPathVariable.getVariableQName()方法的一些代码示例,展示了XPathVariable.getVariable
我是一名优秀的程序员,十分优秀!