sboag       00/12/27 14:23:34

  Modified:    java/src/org/apache/xpath Expression.java
  Log:
  Add canTraverseOutsideSubtree method, which will be part of
  the infrastructure for being able to prune used source tree nodes,
  when possible.
  
  Revision  Changes    Path
  1.12      +11 -0     xml-xalan/java/src/org/apache/xpath/Expression.java
  
  Index: Expression.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/Expression.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Expression.java   2000/12/18 00:04:53     1.11
  +++ Expression.java   2000/12/27 22:23:34     1.12
  @@ -89,6 +89,17 @@
      *  messages. May be null.
      */
     protected SourceLocator m_slocator;
  +  
  +  /**
  +   * Tell if this expression or it's subexpressions can traverse outside 
  +   * the current subtree.
  +   * 
  +   * @return true if traversal outside the context node's subtree can occur.
  +   */
  +   public boolean canTraverseOutsideSubtree()
  +   {
  +    return false;
  +   }
   
     /**
      * Set the location where this expression was built from.
  
  
  

Reply via email to