1 16 19 package org.apache.xpath.axes; 20 21 import org.apache.xml.dtm.DTM; 22 import org.apache.xpath.compiler.Compiler; 23 24 30 public class AttributeIterator extends ChildTestIterator 31 { 32 33 42 AttributeIterator(Compiler compiler, int opPos, int analysis) 43 throws javax.xml.transform.TransformerException 44 { 45 super(compiler, opPos, analysis); 46 } 47 48 51 protected int getNextNode() 52 { 53 m_lastFetched = (DTM.NULL == m_lastFetched) 54 ? m_cdtm.getFirstAttribute(m_context) 55 : m_cdtm.getNextAttribute(m_lastFetched); 56 return m_lastFetched; 57 } 58 59 65 public int getAxis() 66 { 67 return org.apache.xml.dtm.Axis.ATTRIBUTE; 68 } 69 70 71 72 } 73 | Popular Tags |