net.sourceforge.pmd.jaxen
Class AttributeAxisIterator

java.lang.Object
  extended bynet.sourceforge.pmd.jaxen.AttributeAxisIterator
All Implemented Interfaces:
java.util.Iterator

public class AttributeAxisIterator
extends java.lang.Object
implements java.util.Iterator


Field Summary
private  java.lang.Object currObj
           
private static java.lang.Object[] EMPTY_OBJ_ARRAY
           
private  java.lang.reflect.Method[] methods
           
private  Node node
           
private  int position
           
 
Constructor Summary
AttributeAxisIterator(Node contextNode)
           
 
Method Summary
protected  Attribute getAttribute(Node node, java.lang.reflect.Method method)
           
private  Attribute getNextAttribute()
           
 boolean hasNext()
           
protected  boolean isAttribute(java.lang.reflect.Method method)
           
 java.lang.Object next()
           
 void remove()
           
protected  java.lang.String truncateMethodName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_OBJ_ARRAY

private static final java.lang.Object[] EMPTY_OBJ_ARRAY

currObj

private java.lang.Object currObj

methods

private java.lang.reflect.Method[] methods

position

private int position

node

private Node node
Constructor Detail

AttributeAxisIterator

public AttributeAxisIterator(Node contextNode)
Method Detail

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

getNextAttribute

private Attribute getNextAttribute()

getAttribute

protected Attribute getAttribute(Node node,
                                 java.lang.reflect.Method method)
                          throws java.lang.IllegalAccessException,
                                 java.lang.reflect.InvocationTargetException
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

truncateMethodName

protected java.lang.String truncateMethodName(java.lang.String name)

isAttribute

protected boolean isAttribute(java.lang.reflect.Method method)