Class AttributeInfoIterator

  • All Implemented Interfaces:
    java.util.Iterator<AttributeInfo>

    final class AttributeInfoIterator
    extends java.lang.Object
    implements java.util.Iterator<AttributeInfo>
    AttributeIterator is an iterator over all the attribute nodes of an Element in the TinyTree.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      AttributeInfo next()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Constructor Detail

      • AttributeInfoIterator

        AttributeInfoIterator​(TinyTree tree,
                              int element)
        Constructor. Note: this constructor will only be called if the relevant node is an element and if it has one or more attributes. Otherwise an EmptyEnumeration will be constructed instead.
        Parameters:
        tree - : the containing TinyTree
        element - : the node number of the element whose attributes are required
    • Method Detail

      • hasNext

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