当前位置: 首页>>代码示例>>Java>>正文


Java Expression.exprSetParent方法代码示例

本文整理汇总了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();
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:25,代码来源:Function2Args.java

示例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;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:24,代码来源:UnionPathIterator.java

示例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);
  }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:22,代码来源:FuncExtFunction.java

示例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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:FunctionPattern.java

示例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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:StepPattern.java

示例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;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:Function3Args.java

示例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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:Operation.java

示例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;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:FunctionMultiArgs.java

示例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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:UnaryOperation.java

示例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;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:WalkingIterator.java

示例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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:FilterExprWalker.java

示例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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:FilterExprIteratorSimple.java

示例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;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:9,代码来源:FilterExprIterator.java

示例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);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:17,代码来源:FuncExtFunction.java

示例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);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:UnaryOperation.java


注:本文中的com.sun.org.apache.xpath.internal.Expression.exprSetParent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。