- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中net.sf.saxon.sxpath.XPathVariable.getLocalSlotNumber()
方法的一些代码示例,展示了XPathVariable.getLocalSlotNumber()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPathVariable.getLocalSlotNumber()
方法的具体详情如下:
包路径:net.sf.saxon.sxpath.XPathVariable
类名称:XPathVariable
方法名:getLocalSlotNumber
[英]If this is a local variable held on the local stack frame, return the corresponding slot number. In other cases, return -1.
[中]如果这是本地堆栈帧上保存的本地变量,则返回相应的插槽号。在其他情况下,返回-1。
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon
/**
* Get the slot number allocated to a particular variable
*
* @param qname the name of the variable
* @return the slot number, or -1 if the variable has not been declared
*/
public int getSlotNumber(QNameValue qname) {
StructuredQName sq = qname.getStructuredQName();
XPathVariable var = variables.get(sq);
if (var == null) {
return -1;
}
return var.getLocalSlotNumber();
}
代码示例来源:origin: net.sourceforge.saxon/saxon
/**
* Get the slot number allocated to a particular variable
* @param qname the name of the variable
* @return the slot number, or -1 if the variable has not been declared
*/
public int getSlotNumber(QNameValue qname) {
StructuredQName sq = qname.toStructuredQName();
XPathVariable var = (XPathVariable)variables.get(sq);
if (var == null) {
return -1;
}
return var.getLocalSlotNumber();
}
代码示例来源:origin: net.sf.saxon/Saxon-HE
/**
* Get the slot number allocated to a particular variable
*
* @param qname the name of the variable
* @return the slot number, or -1 if the variable has not been declared
*/
public int getSlotNumber(QNameValue qname) {
StructuredQName sq = qname.getStructuredQName();
XPathVariable var = variables.get(sq);
if (var == null) {
return -1;
}
return var.getLocalSlotNumber();
}
代码示例来源:origin: org.opengis.cite.saxon/saxon9
/**
* Get the slot number allocated to a particular variable
* @param qname the name of the variable
* @return the slot number, or -1 if the variable has not been declared
*/
public int getSlotNumber(QNameValue qname) {
StructuredQName sq = qname.toStructuredQName();
XPathVariable var = (XPathVariable)variables.get(sq);
if (var == null) {
return -1;
}
return var.getLocalSlotNumber();
}
代码示例来源:origin: net.sourceforge.saxon/saxon
/**
* 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.
*/
public SlotManager getStackFrameMap() {
SlotManager map = getConfiguration().makeSlotManager();
XPathVariable[] va = new XPathVariable[variables.size()];
for (Iterator v = variables.values().iterator(); v.hasNext();) {
XPathVariable var = (XPathVariable)v.next();
va[var.getLocalSlotNumber()] = var;
}
for (int i=0; i<va.length; i++) {
map.allocateSlotNumber(va[i].getVariableQName());
}
return map;
}
代码示例来源:origin: net.sf.saxon/Saxon-HE
/**
* 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.
*/
public SlotManager getStackFrameMap() {
SlotManager map = getConfiguration().makeSlotManager();
XPathVariable[] va = new XPathVariable[variables.size()];
for (XPathVariable var : variables.values()) {
va[var.getLocalSlotNumber()] = var;
}
for (XPathVariable v : va) {
map.allocateSlotNumber(v.getVariableQName());
}
return map;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon
/**
* 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.
*/
public SlotManager getStackFrameMap() {
SlotManager map = getConfiguration().makeSlotManager();
XPathVariable[] va = new XPathVariable[variables.size()];
for (XPathVariable var : variables.values()) {
va[var.getLocalSlotNumber()] = var;
}
for (XPathVariable v : va) {
map.allocateSlotNumber(v.getVariableQName());
}
return map;
}
代码示例来源:origin: org.opengis.cite.saxon/saxon9
contextObject.setLocalVariable(variable.getLocalSlotNumber(), value);
代码示例来源:origin: net.sf.saxon/Saxon-HE
int slot = variable.getLocalSlotNumber();
StructuredQName expectedName = slot >= stackFrameMap.getNumberOfVariables() ? null :
stackFrameMap.getVariableMap().get(slot);
代码示例来源:origin: net.sourceforge.saxon/saxon
/**
* Iterate over the results of the function
*/
public SequenceIterator iterate(XPathContext c) throws XPathException {
PreparedExpression pexpr = prepareExpression(c);
if (operation == EXPRESSION) {
return SingletonIterator.makeIterator(new ObjectValue(pexpr));
} else {
XPathContextMajor c2 = c.newCleanContext();
c2.setOrigin(details);
c2.openStackFrame(pexpr.stackFrameMap);
c2.setCurrentIterator(c.getCurrentIterator());
for (int i=1; i<argument.length; i++) {
int slot = pexpr.variables[i-1].getLocalSlotNumber();
c2.setLocalVariable(slot, ExpressionTool.eagerEvaluate(argument[i],c));
}
return Value.getIterator(
ExpressionTool.lazyEvaluate(pexpr.expression, c2, 1));
}
}
代码示例来源:origin: net.sf.saxon/Saxon-B
/**
* Iterate over the results of the function
*/
public SequenceIterator iterate(XPathContext c) throws XPathException {
PreparedExpression pexpr = prepareExpression(c);
if (operation == EXPRESSION) {
return SingletonIterator.makeIterator(new ObjectValue(pexpr));
} else {
XPathContextMajor c2 = c.newCleanContext();
c2.setOrigin(details);
c2.openStackFrame(pexpr.stackFrameMap);
c2.setCurrentIterator(c.getCurrentIterator());
for (int i=1; i<argument.length; i++) {
int slot = pexpr.variables[i-1].getLocalSlotNumber();
c2.setLocalVariable(slot, ExpressionTool.eagerEvaluate(argument[i],c));
}
return Value.getIterator(
ExpressionTool.lazyEvaluate(pexpr.expression, c2, 1));
}
}
代码示例来源:origin: org.opengis.cite.saxon/saxon9
/**
* Iterate over the results of the function
*/
public SequenceIterator iterate(XPathContext c) throws XPathException {
PreparedExpression pexpr = prepareExpression(c);
if (operation == EXPRESSION) {
return SingletonIterator.makeIterator(new ObjectValue(pexpr));
} else {
XPathContextMajor c2 = c.newCleanContext();
c2.setOrigin(details);
c2.openStackFrame(pexpr.stackFrameMap);
c2.setCurrentIterator(c.getCurrentIterator());
for (int i=1; i<argument.length; i++) {
int slot = pexpr.variables[i-1].getLocalSlotNumber();
c2.setLocalVariable(slot, ExpressionTool.eagerEvaluate(argument[i],c));
}
return Value.getIterator(
ExpressionTool.lazyEvaluate(pexpr.expression, c2, 1));
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon
int slot = variable.getLocalSlotNumber();
StructuredQName expectedName = slot >= stackFrameMap.getNumberOfVariables() ? null :
stackFrameMap.getVariableMap().get(slot);
代码示例来源:origin: net.sourceforge.saxon/saxon
int slot = variable.getLocalSlotNumber();
StructuredQName expectedName = (slot >= stackFrameMap.getNumberOfVariables() ? null :
(StructuredQName)stackFrameMap.getVariableMap().get(slot));
代码示例来源:origin: net.sourceforge.saxon/saxon
/**
* Evaluate in a general context
*/
public Item evaluateItem(XPathContext c) throws XPathException {
if (operation == EXPRESSION) {
PreparedExpression pexpr = prepareExpression(c);
return new ObjectValue(pexpr);
} else if (operation == EVALUATE_NODE) {
XPathContextMajor c2 = c.newCleanContext();
PreparedExpression pexpr = prepareExpression(c2);
c2.setOrigin(details);
c2.openStackFrame(pexpr.stackFrameMap);
return pexpr.expression.evaluateItem(c2);
} else {
XPathContextMajor c2 = c.newCleanContext();
PreparedExpression pexpr = prepareExpression(c2);
for (int i=1; i<argument.length; i++) {
int slot = pexpr.variables[i-1].getLocalSlotNumber();
c2.setLocalVariable(slot, ExpressionTool.eagerEvaluate(argument[i],c));
}
c2.setOrigin(details);
c2.openStackFrame(pexpr.stackFrameMap);
c2.setCurrentIterator(c.getCurrentIterator());
return pexpr.expression.evaluateItem(c2);
}
}
代码示例来源:origin: org.opengis.cite.saxon/saxon9
/**
* Evaluate in a general context
*/
public Item evaluateItem(XPathContext c) throws XPathException {
if (operation == EXPRESSION) {
PreparedExpression pexpr = prepareExpression(c);
return new ObjectValue(pexpr);
} else if (operation == EVALUATE_NODE) {
XPathContextMajor c2 = c.newCleanContext();
PreparedExpression pexpr = prepareExpression(c2);
c2.setOrigin(details);
c2.openStackFrame(pexpr.stackFrameMap);
return pexpr.expression.evaluateItem(c2);
} else {
XPathContextMajor c2 = c.newCleanContext();
PreparedExpression pexpr = prepareExpression(c2);
for (int i=1; i<argument.length; i++) {
int slot = pexpr.variables[i-1].getLocalSlotNumber();
c2.setLocalVariable(slot, ExpressionTool.eagerEvaluate(argument[i],c));
}
c2.setOrigin(details);
c2.openStackFrame(pexpr.stackFrameMap);
c2.setCurrentIterator(c.getCurrentIterator());
return pexpr.expression.evaluateItem(c2);
}
}
代码示例来源:origin: net.sf.saxon/Saxon-B
/**
* Evaluate in a general context
*/
public Item evaluateItem(XPathContext c) throws XPathException {
if (operation == EXPRESSION) {
PreparedExpression pexpr = prepareExpression(c);
return new ObjectValue(pexpr);
} else if (operation == EVALUATE_NODE) {
XPathContextMajor c2 = c.newCleanContext();
PreparedExpression pexpr = prepareExpression(c2);
c2.setOrigin(details);
c2.openStackFrame(pexpr.stackFrameMap);
return pexpr.expression.evaluateItem(c2);
} else {
XPathContextMajor c2 = c.newCleanContext();
PreparedExpression pexpr = prepareExpression(c2);
for (int i=1; i<argument.length; i++) {
int slot = pexpr.variables[i-1].getLocalSlotNumber();
c2.setLocalVariable(slot, ExpressionTool.eagerEvaluate(argument[i],c));
}
c2.setOrigin(details);
c2.openStackFrame(pexpr.stackFrameMap);
c2.setCurrentIterator(c.getCurrentIterator());
return pexpr.expression.evaluateItem(c2);
}
}
本文整理了Java中net.sf.saxon.sxpath.XPathVariable.getLocalSlotNumber()方法的一些代码示例,展示了XPathVariable.getLocalS
我是一名优秀的程序员,十分优秀!