org.acm.seguin.pmd.jaxen
Class AttributeAxisIterator

java.lang.Object
  extended by org.acm.seguin.pmd.jaxen.AttributeAxisIterator
All Implemented Interfaces:
java.util.Iterator

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

Description of the Class

Author:
mikea

Constructor Summary
AttributeAxisIterator(net.sourceforge.jrefactory.ast.Node contextNode)
          Constructor for the AttributeAxisIterator object
 
Method Summary
protected  Attribute getAttribute(net.sourceforge.jrefactory.ast.Node node, java.lang.reflect.Method method)
          Gets the attribute attribute of the AttributeAxisIterator object
 boolean hasNext()
          Description of the Method
protected  boolean isAttribute(java.lang.reflect.Method method)
          Gets the attribute attribute of the AttributeAxisIterator object
 java.lang.Object next()
          Description of the Method
 void remove()
          Description of the Method
protected  java.lang.String truncateMethodName(java.lang.String name)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeAxisIterator

public AttributeAxisIterator(net.sourceforge.jrefactory.ast.Node contextNode)
Constructor for the AttributeAxisIterator object

Parameters:
contextNode - Description of the Parameter
Method Detail

next

public java.lang.Object next()
Description of the Method

Specified by:
next in interface java.util.Iterator
Returns:
Description of the Return Value

hasNext

public boolean hasNext()
Description of the Method

Specified by:
hasNext in interface java.util.Iterator
Returns:
Description of the Return Value

remove

public void remove()
Description of the Method

Specified by:
remove in interface java.util.Iterator

getAttribute

protected Attribute getAttribute(net.sourceforge.jrefactory.ast.Node node,
                                 java.lang.reflect.Method method)
                          throws java.lang.IllegalAccessException,
                                 java.lang.reflect.InvocationTargetException
Gets the attribute attribute of the AttributeAxisIterator object

Parameters:
node - Description of the Parameter
method - Description of the Parameter
Returns:
The attribute value
Throws:
java.lang.IllegalAccessException - Description of the Exception
java.lang.reflect.InvocationTargetException - Description of the Exception

truncateMethodName

protected java.lang.String truncateMethodName(java.lang.String name)
Description of the Method

Parameters:
name - Description of the Parameter
Returns:
Description of the Return Value

isAttribute

protected boolean isAttribute(java.lang.reflect.Method method)
Gets the attribute attribute of the AttributeAxisIterator object

Parameters:
method - Description of the Parameter
Returns:
The attribute value