本文整理汇总了Java中com.sun.org.apache.xpath.internal.operations.Operation.setLeftRight方法的典型用法代码示例。如果您正苦于以下问题:Java Operation.setLeftRight方法的具体用法?Java Operation.setLeftRight怎么用?Java Operation.setLeftRight使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.org.apache.xpath.internal.operations.Operation
的用法示例。
在下文中一共展示了Operation.setLeftRight方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: compileOperation
import com.sun.org.apache.xpath.internal.operations.Operation; //导入方法依赖的package包/类
/**
* Bottle-neck compilation of an operation with left and right operands.
*
* @param operation non-null reference to parent operation.
* @param opPos The op map position of the parent operation.
*
* @return reference to {@link com.sun.org.apache.xpath.internal.operations.Operation} instance.
*
* @throws TransformerException if there is a syntax or other error.
*/
private Expression compileOperation(Operation operation, int opPos)
throws TransformerException
{
int leftPos = getFirstChildPos(opPos);
int rightPos = getNextOpPos(leftPos);
operation.setLeftRight(compile(leftPos), compile(rightPos));
return operation;
}