Java Doc for FilterExprWalker.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
      org.apache.xpath.axes.FilterExprWalker

FilterExprWalker
public class FilterExprWalker extends AxesWalker (Code)
Walker for the OP_VARIABLE, or OP_EXTFUNCTION, or OP_FUNCTION, or OP_GROUP, op codes.
See Also:    XPath FilterExpr descriptions

Inner Class :class filterExprOwner implements ExpressionOwner

Field Summary
final static  longserialVersionUID
    

Constructor Summary
public  FilterExprWalker(WalkingIterator locPathIterator)
     Construct a FilterExprWalker using a LocPathIterator.

Method Summary
public  shortacceptNode(int n)
     This method needs to override AxesWalker.acceptNode because FilterExprWalkers don't need to, and shouldn't, do a node test.
Parameters:
  n - The node to check to see if it passes the filter or not.
public  voidcallPredicateVisitors(XPathVisitor visitor)
     This will traverse the heararchy, calling the visitor for each member.
public  Objectclone()
     Get a cloned FilterExprWalker.
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.
public  voidfixupVariables(java.util.Vector vars, int globalsSize)
     This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time.
Parameters:
  vars - List of QNames that correspond to variables.
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.
public  ExpressiongetInnerExpression()
     Get the inner contained expression of this filter.
public  intgetLastPos(XPathContext xctxt)
     Get the index of the last node that can be itterated to.
Parameters:
  xctxt - XPath runtime context.
public  intgetNextNode()
     Moves the TreeWalker to the next visible node in document order relative to the current node, and returns the new node.
public  voidinit(Compiler compiler, int opPos, int stepType)
     Init a FilterExprWalker.
public  booleanisDocOrdered()
     Returns true if all the nodes in the iteration well be returned in document order.
public  voidsetInnerExpression(Expression expr)
     Set the inner contained expression of this filter.
public  voidsetRoot(int root)
     Set the root node of the TreeWalker.

Field Detail
serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
FilterExprWalker
public FilterExprWalker(WalkingIterator locPathIterator)(Code)
Construct a FilterExprWalker using a LocPathIterator.
Parameters:
  locPathIterator - non-null reference to the parent iterator.




Method Detail
acceptNode
public short acceptNode(int n)(Code)
This method needs to override AxesWalker.acceptNode because FilterExprWalkers don't need to, and shouldn't, do a node test.
Parameters:
  n - The node to check to see if it passes the filter or not. a constant to determine whether the node is accepted,rejected, or skipped, as defined above .



callPredicateVisitors
public void callPredicateVisitors(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:
  visitor - The visitor whose appropriate method will be called.



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



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.



fixupVariables
public void fixupVariables(java.util.Vector vars, int globalsSize)(Code)
This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time.
Parameters:
  vars - List of QNames that correspond to variables. This list should be searched backwards for the first qualified name that corresponds to the variable reference qname. The position of the QName in the vector from the start of the vector will be its position in the stack frame (but variables above the globalsTop value will need to be offset to the current stack frame).



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.



getInnerExpression
public Expression getInnerExpression()(Code)
Get the inner contained expression of this filter.



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
public int getNextNode()(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.



init
public void init(Compiler compiler, int opPos, int stepType) throws javax.xml.transform.TransformerException(Code)
Init a FilterExprWalker.
Parameters:
  compiler - non-null reference to the Compiler that is constructing.
Parameters:
  opPos - positive opcode position for this step.
Parameters:
  stepType - The type of 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.



setInnerExpression
public void setInnerExpression(Expression expr)(Code)
Set the inner contained expression of this filter.



setRoot
public void setRoot(int root)(Code)
Set the root node of the TreeWalker.
Parameters:
  root - non-null reference to the root, or starting point of the query.



Fields inherited from org.apache.xpath.axes.AxesWalker
protected int m_axis(Code)(Java Doc)
transient boolean m_isFresh(Code)(Java Doc)
protected AxesWalker m_nextWalker(Code)(Java Doc)
AxesWalker m_prevWalker(Code)(Java Doc)
transient int m_root(Code)(Java Doc)
protected DTMAxisTraverser m_traverser(Code)(Java Doc)
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from org.apache.xpath.axes.AxesWalker
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)(Code)(Java Doc)
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
AxesWalker cloneDeep(WalkingIterator cloneOwner, Vector cloneList) throws CloneNotSupportedException(Code)(Java Doc)
public boolean deepEquals(Expression expr)(Code)(Java Doc)
public void detach()(Code)(Java Doc)
static AxesWalker findClone(AxesWalker key, Vector cloneList)(Code)(Java Doc)
public int getAnalysisBits()(Code)(Java Doc)
public int getAxis()(Code)(Java Doc)
final public int getCurrentNode()(Code)(Java Doc)
public DTM getDTM(int node)(Code)(Java Doc)
public Expression getExpression()(Code)(Java Doc)
public int getLastPos(XPathContext xctxt)(Code)(Java Doc)
protected int getNextNode()(Code)(Java Doc)
public AxesWalker getNextWalker()(Code)(Java Doc)
public AxesWalker getPrevWalker()(Code)(Java Doc)
public int getRoot()(Code)(Java Doc)
public void init(Compiler compiler, int opPos, int stepType) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean isDocOrdered()(Code)(Java Doc)
public int nextNode()(Code)(Java Doc)
public void setDefaultDTM(DTM dtm)(Code)(Java Doc)
public void setExpression(Expression exp)(Code)(Java Doc)
public void setNextWalker(AxesWalker walker)(Code)(Java Doc)
public void setPrevWalker(AxesWalker walker)(Code)(Java Doc)
public void setRoot(int root)(Code)(Java Doc)
final public WalkingIterator wi()(Code)(Java Doc)

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.