1 16 19 package com.sun.org.apache.xpath.internal.axes; 20 21 import com.sun.org.apache.xml.internal.dtm.DTM; 22 import com.sun.org.apache.xpath.internal.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 com.sun.org.apache.xml.internal.dtm.Axis.ATTRIBUTE; 68 } 69 70 71 72 } 73 | Popular Tags |