Java Doc for OneStepIterator.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.LocPathIterator
      org.apache.xpath.axes.BasicTestIterator
         org.apache.xpath.axes.ChildTestIterator
            org.apache.xpath.axes.OneStepIterator

OneStepIterator
public class OneStepIterator extends ChildTestIterator (Code)
This class implements a general iterator for those LocationSteps with only one step, and perhaps a predicate.
See Also:   org.apache.xpath.axes.LocPathIterator


Field Summary
protected  intm_axis
     The traversal axis from where the nodes will be filtered.
protected  DTMAxisIteratorm_iterator
     The DTM inner traversal class, that corresponds to the super axis.
final static  longserialVersionUID
    

Constructor Summary
 OneStepIterator(Compiler compiler, int opPos, int analysis)
     Create a OneStepIterator object.
public  OneStepIterator(DTMAxisIterator iterator, int axis)
     Create a OneStepIterator object.

Method Summary
public  Objectclone()
     Get a cloned iterator.
public  DTMIteratorcloneWithReset()
     Get a cloned Iterator that is reset to the beginning of the query.
protected  voidcountProximityPosition(int i)
     Count backwards one proximity position.
public  booleandeepEquals(Expression expr)
    
public  voiddetach()
     Detaches the iterator from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state.
public  intgetAxis()
     Returns the axis being iterated, if it is known.
public  intgetLength()
     The number of nodes in the list.
protected  intgetNextNode()
     Get the next node via getFirstAttribute && getNextAttribute.
protected  intgetProximityPosition(int predicateIndex)
     Get the current sub-context position.
public  booleanisReverseAxes()
     Tells if this is a reverse axes.
public  voidreset()
     Reset the iterator.
public  voidsetRoot(int context, Object environment)
     Initialize the context values for this expression after it is cloned.

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



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



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
OneStepIterator
OneStepIterator(Compiler compiler, int opPos, int analysis) throws javax.xml.transform.TransformerException(Code)
Create a OneStepIterator object.
Parameters:
  compiler - A reference to the Compiler that contains the op map.
Parameters:
  opPos - The position within the op map, which contains thelocation path expression for this itterator.
throws:
  javax.xml.transform.TransformerException -



OneStepIterator
public OneStepIterator(DTMAxisIterator iterator, int axis) throws javax.xml.transform.TransformerException(Code)
Create a OneStepIterator object.
Parameters:
  iterator - The DTM iterator which this iterator will use.
Parameters:
  axis - One of Axis.Child, etc., or -1 if the axis is unknown.
throws:
  javax.xml.transform.TransformerException -




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



cloneWithReset
public DTMIterator cloneWithReset() throws CloneNotSupportedException(Code)
Get a cloned Iterator that is reset to the beginning of the query. A cloned NodeIterator set of the start of the query.
throws:
  CloneNotSupportedException -



countProximityPosition
protected void countProximityPosition(int i)(Code)
Count backwards one proximity position.
Parameters:
  i - The predicate index.



deepEquals
public boolean deepEquals(Expression expr)(Code)

See Also:   Expression.deepEquals(Expression)



detach
public void detach()(Code)
Detaches the iterator from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state. Afterdetach has been invoked, calls to nextNode orpreviousNode will raise the exception INVALID_STATE_ERR.



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.



getLength
public int getLength()(Code)
The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive. The number of nodes in the list, always greater or equal to zero.



getNextNode
protected int getNextNode()(Code)
Get the next node via getFirstAttribute && getNextAttribute.



getProximityPosition
protected int getProximityPosition(int predicateIndex)(Code)
Get the current sub-context position. In order to do the reverse axes count, for the moment this re-searches the axes up to the predicate. An optimization on this is to cache the nodes searched, but, for the moment, this case is probably rare enough that the added complexity isn't worth it.
Parameters:
  predicateIndex - The predicate index of the proximity position. The pridicate index, or -1.



isReverseAxes
public boolean isReverseAxes()(Code)
Tells if this is a reverse axes. Overrides AxesWalker#isReverseAxes. true for this class.



reset
public void reset()(Code)
Reset the iterator.



setRoot
public void setRoot(int context, Object environment)(Code)
Initialize the context values for this expression after it is cloned.
Parameters:
  context - The XPath runtime context for thistransformation.



Fields inherited from org.apache.xpath.axes.ChildTestIterator
protected transient DTMAxisTraverser m_traverser(Code)(Java Doc)
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from org.apache.xpath.axes.ChildTestIterator
public DTMIterator cloneWithReset() throws CloneNotSupportedException(Code)(Java Doc)
public void detach()(Code)(Java Doc)
public int getAxis()(Code)(Java Doc)
protected int getNextNode()(Code)(Java Doc)
public void setRoot(int context, Object environment)(Code)(Java Doc)

Fields inherited from org.apache.xpath.axes.BasicTestIterator
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from org.apache.xpath.axes.BasicTestIterator
public DTMIterator cloneWithReset() throws CloneNotSupportedException(Code)(Java Doc)
abstract protected int getNextNode()(Code)(Java Doc)
public int nextNode()(Code)(Java Doc)

Fields inherited from org.apache.xpath.axes.LocPathIterator
protected boolean m_allowDetach(Code)(Java Doc)
protected transient DTM m_cdtm(Code)(Java Doc)
protected transient IteratorPool m_clones(Code)(Java Doc)
protected transient int m_context(Code)(Java Doc)
protected transient int m_currentContextNode(Code)(Java Doc)
protected transient XPathContext m_execContext(Code)(Java Doc)
public transient int m_lastFetched(Code)(Java Doc)
protected transient int m_length(Code)(Java Doc)
protected transient int m_pos(Code)(Java Doc)
transient int m_stackFrame(Code)(Java Doc)
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from org.apache.xpath.axes.LocPathIterator
public void allowDetachToRelease(boolean allowRelease)(Code)(Java Doc)
public DTMIterator asIterator(XPathContext xctxt, int contextNode) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public int asNode(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public boolean bool(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public void callVisitors(ExpressionOwner owner, XPathVisitor visitor)(Code)(Java Doc)
public DTMIterator cloneWithReset() throws CloneNotSupportedException(Code)(Java Doc)
public void detach()(Code)(Java Doc)
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc)
public void executeCharsToContentHandler(XPathContext xctxt, org.xml.sax.ContentHandler handler) throws javax.xml.transform.TransformerException, org.xml.sax.SAXException(Code)(Java Doc)
public int getAnalysisBits()(Code)(Java Doc)
public int getAxis()(Code)(Java Doc)
final public int getContext()(Code)(Java Doc)
final public int getCurrentContextNode()(Code)(Java Doc)
public int getCurrentNode()(Code)(Java Doc)
final public int getCurrentPos()(Code)(Java Doc)
public DTM getDTM(int nodeHandle)(Code)(Java Doc)
public DTMManager getDTMManager()(Code)(Java Doc)
public boolean getExpandEntityReferences()(Code)(Java Doc)
public DTMFilter getFilter()(Code)(Java Doc)
final public boolean getFoundLast()(Code)(Java Doc)
public boolean getIsTopLevel()(Code)(Java Doc)
public int getLastPos(XPathContext xctxt)(Code)(Java Doc)
public int getLength()(Code)(Java Doc)
final public PrefixResolver getPrefixResolver()(Code)(Java Doc)
public int getRoot()(Code)(Java Doc)
public int getWhatToShow()(Code)(Java Doc)
final public XPathContext getXPathContext()(Code)(Java Doc)
public void incrementCurrentPos()(Code)(Java Doc)
public boolean isDocOrdered()(Code)(Java Doc)
public boolean isFresh()(Code)(Java Doc)
public boolean isMutable()(Code)(Java Doc)
public boolean isNodesetExpr()(Code)(Java Doc)
public int item(int index)(Code)(Java Doc)
abstract public int nextNode()(Code)(Java Doc)
public int previousNode()(Code)(Java Doc)
public void reset()(Code)(Java Doc)
protected int returnNextNode(int nextNode)(Code)(Java Doc)
public void runTo(int index)(Code)(Java Doc)
final public void setCurrentContextNode(int n)(Code)(Java Doc)
public void setCurrentPos(int i)(Code)(Java Doc)
public void setEnvironment(Object environment)(Code)(Java Doc)
public void setIsTopLevel(boolean b)(Code)(Java Doc)
public void setItem(int node, int index)(Code)(Java Doc)
protected void setNextPosition(int next)(Code)(Java Doc)
public void setRoot(int context, Object environment)(Code)(Java Doc)
public void setShouldCacheNodes(boolean b)(Code)(Java Doc)
public int size()(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.