Class AttributeAxisIterator
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.xpath.AttributeAxisIterator
-
- All Implemented Interfaces:
java.util.Iterator<Attribute>
@Deprecated @InternalApi public class AttributeAxisIterator extends java.lang.Object implements java.util.Iterator<Attribute>
Deprecated.Explores an AST node reflectively to iterate over its XPath attributes. This is the default way the attributes of a node are made accessible to XPath rules, and defines an important piece of PMD's XPath support.
-
-
Constructor Summary
Constructors Constructor Description AttributeAxisIterator(Node contextNode)
Deprecated.Creates a new iterator that enumerates the attributes of the given node.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
hasNext()
Deprecated.protected boolean
isAttributeAccessor(java.lang.reflect.Method method)
Deprecated.Returns whether the given method is an attribute accessor, in which case a corresponding Attribute will be added to the iterator.Attribute
next()
Deprecated.void
remove()
Deprecated.
-
-
-
Constructor Detail
-
AttributeAxisIterator
public AttributeAxisIterator(Node contextNode)
Deprecated.Creates a new iterator that enumerates the attributes of the given node. Note: if you want to access the attributes of a node, don't use this directly, use instead the overridableNode.getXPathAttributesIterator()
.
-
-
Method Detail
-
isAttributeAccessor
protected boolean isAttributeAccessor(java.lang.reflect.Method method)
Deprecated.Returns whether the given method is an attribute accessor, in which case a corresponding Attribute will be added to the iterator.- Parameters:
method
- The method to test
-
next
public Attribute next()
Deprecated.- Specified by:
next
in interfacejava.util.Iterator<Attribute>
-
hasNext
public boolean hasNext()
Deprecated.- Specified by:
hasNext
in interfacejava.util.Iterator<Attribute>
-
remove
public void remove()
Deprecated.- Specified by:
remove
in interfacejava.util.Iterator<Attribute>
-
-