本文整理汇总了Java中com.sun.org.apache.xpath.internal.Expression.exprSetParent方法的典型用法代码示例。如果您正苦于以下问题:Java Expression.exprSetParent方法的具体用法?Java Expression.exprSetParent怎么用?Java Expression.exprSetParent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.org.apache.xpath.internal.Expression
的用法示例。
在下文中一共展示了Expression.exprSetParent方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setArg
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* Set an argument expression for a function. This method is called by the
* XPath compiler.
*
* @param arg non-null expression that represents the argument.
* @param argNum The argument number index.
*
* @throws WrongNumberArgsException If the argNum parameter is greater than 1.
*/
public void setArg(Expression arg, int argNum)
throws WrongNumberArgsException
{
// System.out.println("argNum: "+argNum);
if (argNum == 0)
super.setArg(arg, argNum);
else if (1 == argNum)
{
m_arg1 = arg;
arg.exprSetParent(this);
}
else
reportWrongNumberArgs();
}
示例2: setExpression
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* @see ExpressionOwner#setExpression(Expression)
*/
public void setExpression(Expression exp)
{
if(!(exp instanceof LocPathIterator))
{
// Yuck. Need FilterExprIter. Or make it so m_exprs can be just
// plain expressions?
WalkingIterator wi = new WalkingIterator(getPrefixResolver());
FilterExprWalker few = new FilterExprWalker(wi);
wi.setFirstWalker(few);
few.setInnerExpression(exp);
wi.exprSetParent(UnionPathIterator.this);
few.exprSetParent(wi);
exp.exprSetParent(few);
exp = wi;
}
else
exp.exprSetParent(UnionPathIterator.this);
m_exprs[m_index] = (LocPathIterator)exp;
}
示例3: exprSetParent
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* Set the parent node.
* For an extension function, we also need to set the parent
* node for all argument expressions.
*
* @param n The parent node
*/
public void exprSetParent(ExpressionNode n)
{
super.exprSetParent(n);
int nArgs = m_argVec.size();
for (int i = 0; i < nArgs; i++)
{
Expression arg = (Expression) m_argVec.elementAt(i);
arg.exprSetParent(n);
}
}
示例4: setExpression
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* @see ExpressionOwner#setExpression(Expression)
*/
public void setExpression(Expression exp)
{
exp.exprSetParent(FunctionPattern.this);
m_functionExpr = exp;
}
示例5: setExpression
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* @see ExpressionOwner#setExpression(Expression)
*/
public void setExpression(Expression exp)
{
exp.exprSetParent(StepPattern.this);
m_predicates[m_index] = exp;
}
示例6: setExpression
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* @see ExpressionOwner#setExpression(Expression)
*/
public void setExpression(Expression exp)
{
exp.exprSetParent(Function3Args.this);
m_arg2 = exp;
}
示例7: setExpression
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* @see ExpressionOwner#setExpression(Expression)
*/
public void setExpression(Expression exp)
{
exp.exprSetParent(Operation.this);
m_left = exp;
}
示例8: setExpression
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* @see ExpressionOwner#setExpression(Expression)
*/
public void setExpression(Expression exp)
{
exp.exprSetParent(FunctionMultiArgs.this);
m_args[m_argIndex] = exp;
}
示例9: setExpression
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* @see ExpressionOwner#setExpression(Expression)
*/
public void setExpression(Expression exp)
{
exp.exprSetParent(this);
m_right = exp;
}
示例10: setExpression
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* @see ExpressionOwner#setExpression(Expression)
*/
public void setExpression(Expression exp)
{
exp.exprSetParent(this);
m_firstWalker = (AxesWalker)exp;
}
示例11: setExpression
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* @see ExpressionOwner#setExpression(Expression)
*/
public void setExpression(Expression exp)
{
exp.exprSetParent(FilterExprWalker.this);
m_expr = exp;
}
示例12: setExpression
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* @see ExpressionOwner#setExpression(Expression)
*/
public void setExpression(Expression exp)
{
exp.exprSetParent(FilterExprIteratorSimple.this);
m_expr = exp;
}
示例13: setInnerExpression
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* Set the inner contained expression of this filter.
*/
public void setInnerExpression(Expression expr)
{
expr.exprSetParent(this);
m_expr = expr;
}
示例14: setArg
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* Set an argument expression for a function. This method is called by the
* XPath compiler.
*
* @param arg non-null expression that represents the argument.
* @param argNum The argument number index.
*
* @throws WrongNumberArgsException If the argNum parameter is beyond what
* is specified for this function.
*/
public void setArg(Expression arg, int argNum)
throws WrongNumberArgsException
{
m_argVec.addElement(arg);
arg.exprSetParent(this);
}
示例15: setRight
import com.sun.org.apache.xpath.internal.Expression; //导入方法依赖的package包/类
/**
* Set the expression operand for the operation.
*
*
* @param r The expression operand to which the unary operation will be
* applied.
*/
public void setRight(Expression r)
{
m_right = r;
r.exprSetParent(this);
}