Java Doc for AxesWalker.java in  » XML » xalan » org » apache » xpath » axes » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xalan » org.apache.xpath.axes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.xpath.axes.PredicatedNodeTest
   org.apache.xpath.axes.AxesWalker

All known Subclasses:   org.apache.xpath.axes.ReverseAxesWalker,  org.apache.xpath.axes.FilterExprWalker,
AxesWalker
public class AxesWalker extends PredicatedNodeTest implements Cloneable,PathComponent,ExpressionOwner(Code)
Serves as common interface for axes Walkers, and stores common state variables.


Field Summary
protected  intm_axis
     The traversal axis from where the nodes will be filtered.
transient  booleanm_isFresh
     True if an itteration has not begun.
protected  AxesWalkerm_nextWalker
     The next walker in the location step chain.
 AxesWalkerm_prevWalker
     The previous walker in the location step chain, or null.
transient  intm_root
     The root node of the TreeWalker, as specified when it was created.
protected  DTMAxisTraverserm_traverser
     The DTM inner traversal class, that corresponds to the super axis.
final static  longserialVersionUID
    

Constructor Summary
public  AxesWalker(LocPathIterator locPathIterator, int axis)
     Construct an AxesWalker using a LocPathIterator.

Method Summary
public  voidcallVisitors(ExpressionOwner owner, XPathVisitor visitor)
     This will traverse the heararchy, calling the visitor for each member.
public  Objectclone()
     Get a cloned AxesWalker.
 AxesWalkercloneDeep(WalkingIterator cloneOwner, Vector cloneList)
     Do a deep clone of this walker, including next and previous walkers. If the this AxesWalker is on the clone list, don't clone but return the already cloned version.
Parameters:
  cloneOwner - non-null reference to the cloned location path iterator to which this clone will be added.
Parameters:
  cloneList - non-null vector of sources in odd elements, and the corresponding clones in even vectors.
public  booleandeepEquals(Expression expr)
    
public  voiddetach()
     Detaches the walker from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state.
static  AxesWalkerfindClone(AxesWalker key, Vector cloneList)
     Find a clone that corresponds to the key argument.
Parameters:
  key - The original AxesWalker for which there may be a clone.
Parameters:
  cloneList - vector of sources in odd elements, and the corresponding clones in even vectors, may be null.
public  intgetAnalysisBits()
     Get the analysis bits for this walker, as defined in the WalkerFactory.
public  intgetAxis()
     Returns the axis being iterated, if it is known.
final public  intgetCurrentNode()
     The node at which the TreeWalker is currently positioned.
The value must not be null.
public  DTMgetDTM(int node)
     Get the DTM for this walker.
public  ExpressiongetExpression()
    
public  intgetLastPos(XPathContext xctxt)
     Get the index of the last node that can be itterated to.
Parameters:
  xctxt - XPath runtime context.
protected  intgetNextNode()
     Get the next node in document order on the axes.
public  AxesWalkergetNextWalker()
     Get the next walker in the location step chain.
public  AxesWalkergetPrevWalker()
     Get the previous walker reference in the location step chain.
public  intgetRoot()
     The root node of the TreeWalker, as specified in setRoot(int root).
public  voidinit(Compiler compiler, int opPos, int stepType)
     Initialize an AxesWalker during the parse of the XPath expression.
public  booleanisDocOrdered()
     Returns true if all the nodes in the iteration well be returned in document order.
public  intnextNode()
     Moves the TreeWalker to the next visible node in document order relative to the current node, and returns the new node.
public  voidsetDefaultDTM(DTM dtm)
     Set the DTM for this walker.
public  voidsetExpression(Expression exp)
    
public  voidsetNextWalker(AxesWalker walker)
     Set the next walker in the location step chain.
public  voidsetPrevWalker(AxesWalker walker)
     Set or clear the previous walker reference in the location step chain.
public  voidsetRoot(int root)
     Set the root node of the TreeWalker.
final public  WalkingIteratorwi()
    

Field Detail
m_axis
protected int m_axis(Code)
The traversal axis from where the nodes will be filtered.



m_isFresh
transient boolean m_isFresh(Code)
True if an itteration has not begun.



m_nextWalker
protected AxesWalker m_nextWalker(Code)
The next walker in the location step chain.



m_prevWalker
AxesWalker m_prevWalker(Code)
The previous walker in the location step chain, or null.



m_root
transient int m_root(Code)
The root node of the TreeWalker, as specified when it was created.



m_traverser
protected DTMAxisTraverser m_traverser(Code)
The DTM inner traversal class, that corresponds to the super axis.



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
AxesWalker
public AxesWalker(LocPathIterator locPathIterator, int axis)(Code)
Construct an AxesWalker using a LocPathIterator.
Parameters:
  locPathIterator - non-null reference to the parent iterator.




Method Detail
callVisitors
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)(Code)
This will traverse the heararchy, calling the visitor for each member. If the called visitor method returns false, the subtree should not be called.
Parameters:
  owner - The owner of the visitor, where that path may be rewritten if needed.
Parameters:
  visitor - The visitor whose appropriate method will be called.



clone
public Object clone() throws CloneNotSupportedException(Code)
Get a cloned AxesWalker. A new AxesWalker that can be used without mutating this one.
throws:
  CloneNotSupportedException -



cloneDeep
AxesWalker cloneDeep(WalkingIterator cloneOwner, Vector cloneList) throws CloneNotSupportedException(Code)
Do a deep clone of this walker, including next and previous walkers. If the this AxesWalker is on the clone list, don't clone but return the already cloned version.
Parameters:
  cloneOwner - non-null reference to the cloned location path iterator to which this clone will be added.
Parameters:
  cloneList - non-null vector of sources in odd elements, and the corresponding clones in even vectors. non-null clone, which may be a new clone, or may be a clone contained on the cloneList.



deepEquals
public boolean deepEquals(Expression expr)(Code)

See Also:   Expression.deepEquals(Expression)



detach
public void detach()(Code)
Detaches the walker from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state.



findClone
static AxesWalker findClone(AxesWalker key, Vector cloneList)(Code)
Find a clone that corresponds to the key argument.
Parameters:
  key - The original AxesWalker for which there may be a clone.
Parameters:
  cloneList - vector of sources in odd elements, and the corresponding clones in even vectors, may be null. A clone that corresponds to the key, or null if key not found.



getAnalysisBits
public int getAnalysisBits()(Code)
Get the analysis bits for this walker, as defined in the WalkerFactory. One of WalkerFactory#BIT_DESCENDANT, etc.



getAxis
public int getAxis()(Code)
Returns the axis being iterated, if it is known. Axis.CHILD, etc., or -1 if the axis is not known or is of multiple types.



getCurrentNode
final public int getCurrentNode()(Code)
The node at which the TreeWalker is currently positioned.
The value must not be null. Alterations to the DOM tree may cause the current node to no longer be accepted by the TreeWalker's associated filter. currentNode may also be explicitly set to any node, whether or not it is within the subtree specified by the root node or would be accepted by the filter and whatToShow flags. Further traversal occurs relative to currentNode even if it is not part of the current view by applying the filters in the requested direction (not changing currentNode where no traversal is possible). The node at which the TreeWalker is currently positioned, only null if setRoot has not yet been called.



getDTM
public DTM getDTM(int node)(Code)
Get the DTM for this walker. Non-null reference to a DTM.



getExpression
public Expression getExpression()(Code)

See Also:   ExpressionOwner.getExpression



getLastPos
public int getLastPos(XPathContext xctxt)(Code)
Get the index of the last node that can be itterated to.
Parameters:
  xctxt - XPath runtime context. the index of the last node that can be itterated to.



getNextNode
protected int getNextNode()(Code)
Get the next node in document order on the axes. the next node in document order on the axes, or null.



getNextWalker
public AxesWalker getNextWalker()(Code)
Get the next walker in the location step chain. Reference to AxesWalker derivative, or null.



getPrevWalker
public AxesWalker getPrevWalker()(Code)
Get the previous walker reference in the location step chain. Reference to previous walker reference in the location step chain, or null.



getRoot
public int getRoot()(Code)
The root node of the TreeWalker, as specified in setRoot(int root). Note that this may actually be below the current node. The context node of the step.



init
public void init(Compiler compiler, int opPos, int stepType) throws javax.xml.transform.TransformerException(Code)
Initialize an AxesWalker during the parse of the XPath expression.
Parameters:
  compiler - The Compiler object that has information about this walker in the op map.
Parameters:
  opPos - The op code position of this location step.
Parameters:
  stepType - The type of location step.
throws:
  javax.xml.transform.TransformerException -



isDocOrdered
public boolean isDocOrdered()(Code)
Returns true if all the nodes in the iteration well be returned in document order. Warning: This can only be called after setRoot has been called! true as a default.



nextNode
public int nextNode()(Code)
Moves the TreeWalker to the next visible node in document order relative to the current node, and returns the new node. If the current node has no next node, or if the search for nextNode attempts to step upward from the TreeWalker's root node, returns null , and retains the current node. The new node, or null if the current node has nonext node in the TreeWalker's logical view.



setDefaultDTM
public void setDefaultDTM(DTM dtm)(Code)
Set the DTM for this walker.
Parameters:
  dtm - Non-null reference to a DTM.



setExpression
public void setExpression(Expression exp)(Code)

See Also:   ExpressionOwner.setExpression(Expression)



setNextWalker
public void setNextWalker(AxesWalker walker)(Code)
Set the next walker in the location step chain.
Parameters:
  walker - Reference to AxesWalker derivative, or may be null.



setPrevWalker
public void setPrevWalker(AxesWalker walker)(Code)
Set or clear the previous walker reference in the location step chain.
Parameters:
  walker - Reference to previous walker reference in the location step chain, or null.



setRoot
public void setRoot(int root)(Code)
Set the root node of the TreeWalker. (Not part of the DOM2 TreeWalker interface).
Parameters:
  root - The context node of this step.



wi
final public WalkingIterator wi()(Code)



Fields inherited from org.apache.xpath.axes.PredicatedNodeTest
final static boolean DEBUG_PREDICATECOUNTING(Code)(Java Doc)
protected transient boolean m_foundLast(Code)(Java Doc)
protected LocPathIterator m_lpi(Code)(Java Doc)
protected int m_predCount(Code)(Java Doc)
transient int m_predicateIndex(Code)(Java Doc)
protected transient int[] m_proximityPositions(Code)(Java Doc)
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from org.apache.xpath.axes.PredicatedNodeTest
public short acceptNode(int n)(Code)(Java Doc)
public void callPredicateVisitors(XPathVisitor visitor)(Code)(Java Doc)
public boolean canTraverseOutsideSubtree()(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
protected void countProximityPosition(int i)(Code)(Java Doc)
public boolean deepEquals(Expression expr)(Code)(Java Doc)
boolean executePredicates(int context, XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public void fixupVariables(java.util.Vector vars, int globalsSize)(Code)(Java Doc)
abstract public int getLastPos(XPathContext xctxt)(Code)(Java Doc)
public LocPathIterator getLocPathIterator()(Code)(Java Doc)
public Expression getPredicate(int index)(Code)(Java Doc)
public int getPredicateCount()(Code)(Java Doc)
public int getPredicateIndex()(Code)(Java Doc)
public int getProximityPosition()(Code)(Java Doc)
public int getProximityPosition(XPathContext xctxt)(Code)(Java Doc)
protected int getProximityPosition(int predicateIndex)(Code)(Java Doc)
protected void initPredicateInfo(Compiler compiler, int opPos) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public void initProximityPosition(int i) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean isReverseAxes()(Code)(Java Doc)
protected String nodeToString(int n)(Code)(Java Doc)
public void resetProximityPositions()(Code)(Java Doc)
public void setLocPathIterator(LocPathIterator li)(Code)(Java Doc)
public void setPredicateCount(int count)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.