• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ExpressionOwner类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.org.apache.xpath.internal.ExpressionOwner的典型用法代码示例。如果您正苦于以下问题:Java ExpressionOwner类的具体用法?Java ExpressionOwner怎么用?Java ExpressionOwner使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ExpressionOwner类属于com.sun.org.apache.xpath.internal包,在下文中一共展示了ExpressionOwner类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: callSubtreeVisitors

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * Call the visitors on the subtree.  Factored out from callVisitors
 * so it may be called by derived classes.
 */
protected void callSubtreeVisitors(XPathVisitor visitor)
{
  if (null != m_predicates)
  {
    int n = m_predicates.length;
    for (int i = 0; i < n; i++)
    {
      ExpressionOwner predOwner = new PredOwner(i);
      if (visitor.visitPredicate(predOwner, m_predicates[i]))
      {
        m_predicates[i].callVisitors(predOwner, visitor);
      }
    }
  }
  if (null != m_relativePathPattern)
  {
    m_relativePathPattern.callVisitors(this, visitor);
  }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:24,代码来源:StepPattern.java


示例2: visitPredicate

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * Visit a predicate within a location path.  Note that there isn't a
 * proper unique component for predicates, and that the expression will
 * be called also for whatever type Expression is.
 *
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param pred The predicate object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitPredicate(ExpressionOwner owner, Expression pred)
{
  m_predDepth++;

  if(m_predDepth == 1)
  {
    if((pred instanceof Variable) ||
       (pred instanceof XNumber) ||
       (pred instanceof Div) ||
       (pred instanceof Plus) ||
       (pred instanceof Minus) ||
       (pred instanceof Mod) ||
       (pred instanceof Quo) ||
       (pred instanceof Mult) ||
       (pred instanceof com.sun.org.apache.xpath.internal.operations.Number) ||
       (pred instanceof Function))
        m_hasPositionalPred = true;
    else
      pred.callVisitors(owner, this);
  }

  m_predDepth--;

  // Don't go have the caller go any further down the subtree.
  return false;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:37,代码来源:HasPositionalPredChecker.java


示例3: callPredicateVisitors

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * This will traverse the heararchy, calling the visitor for
 * each member.  If the called visitor method returns
 * false, the subtree should not be called.
 *
 * @param visitor The visitor whose appropriate method will be called.
 */
public void callPredicateVisitors(XPathVisitor visitor)
{
  if (null != m_predicates)
    {
    int n = m_predicates.length;
    for (int i = 0; i < n; i++)
      {
      ExpressionOwner predOwner = new PredOwner(i);
      if (visitor.visitPredicate(predOwner, m_predicates[i]))
        {
        m_predicates[i].callVisitors(predOwner, visitor);
      }

    }
  }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:24,代码来源:PredicatedNodeTest.java


示例4: callVisitors

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * @see com.sun.org.apache.xpath.internal.XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)
 */
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)
{
              if(visitor.visitMatchPattern(owner, this))
              {
                      callSubtreeVisitors(visitor);
              }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:StepPattern.java


示例5: callVisitors

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * @see com.sun.org.apache.xpath.internal.XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)
 */
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)
{
      visitor.visitUnionPattern(owner, this);
      if(null != m_patterns)
      {
              int n = m_patterns.length;
              for(int i = 0; i < n; i++)
              {
                      m_patterns[i].callVisitors(new UnionPathPartOwner(i), visitor);
              }
      }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:UnionPattern.java


示例6: callVisitors

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * @see com.sun.org.apache.xpath.internal.XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)
 */
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)
{
      if(visitor.visitBinaryOperation(owner, this))
      {
              m_left.callVisitors(new LeftExprOwner(), visitor);
              m_right.callVisitors(this, visitor);
      }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:Operation.java


示例7: callVisitors

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * @see com.sun.org.apache.xpath.internal.XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)
 */
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)
{
      if(visitor.visitUnaryOperation(owner, this))
      {
              m_right.callVisitors(this, visitor);
      }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:UnaryOperation.java


示例8: visitFunction

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * Visit a function.
 * @param owner The owner of the expression, to which the expression can
 *              be reset if rewriting takes place.
 * @param func The function reference object.
 * @return true if the sub expressions should be traversed.
 */
public boolean visitFunction(ExpressionOwner owner, Function func)
{
        if((func instanceof FuncPosition) ||
           (func instanceof FuncLast))
                m_hasPositionalPred = true;
        return true;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:HasPositionalPredChecker.java


示例9: callVisitors

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * @see com.sun.org.apache.xpath.internal.XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)
 */
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)
{
              if(visitor.visitLocationPath(owner, this))
              {
                      if(null != m_firstWalker)
                      {
                              m_firstWalker.callVisitors(this, visitor);
                      }
              }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:WalkingIterator.java


示例10: callVisitors

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * @see com.sun.org.apache.xpath.internal.XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)
 */
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)
{
              if(visitor.visitLocationPath(owner, this))
              {
                      visitor.visitStep(owner, this);
                      callPredicateVisitors(visitor);
              }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:LocPathIterator.java


示例11: callVisitors

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * @see com.sun.org.apache.xpath.internal.XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)
 */
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)
{
              if(visitor.visitUnionPath(owner, this))
              {
                      if(null != m_exprs)
                      {
                              int n = m_exprs.length;
                              for(int i = 0; i < n; i++)
                              {
                                      m_exprs[i].callVisitors(new iterOwner(i), visitor);
                              }
                      }
              }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:UnionPathIterator.java


示例12: callVisitors

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * This will traverse the heararchy, calling the visitor for
 * each member.  If the called visitor method returns
 * false, the subtree should not be called.
 *
 * @param owner The owner of the visitor, where that path may be
 *              rewritten if needed.
 * @param visitor The visitor whose appropriate method will be called.
 */
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)
{
      if(visitor.visitStep(owner, this))
      {
              callPredicateVisitors(visitor);
              if(null != m_nextWalker)
              {
                      m_nextWalker.callVisitors(this, visitor);
              }
      }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:AxesWalker.java


示例13: callVisitors

import com.sun.org.apache.xpath.internal.ExpressionOwner; //导入依赖的package包/类
/**
 * @see com.sun.org.apache.xpath.internal.XPathVisitable#callVisitors(ExpressionOwner, XPathVisitor)
 */
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)
{
      if(visitor.visitFunction(owner, this))
      {
              callArgVisitors(visitor);
      }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:Function.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MKMapViewListener类代码示例发布时间:2022-05-23
下一篇:
Java Service类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap