Class NodeListCache


  • class NodeListCache
    extends java.lang.Object
    This class is used, via a pool managed on CoreDocumentImpl, in ParentNode to improve performance of the NodeList accessors, getLength() and item(i).

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) ChildNode fChild
      Last requested node.
      (package private) int fChildIndex
      Last requested node index.
      (package private) int fLength
      Cached node list length.
      (package private) ParentNode fOwner
      Owner of this cache
      (package private) NodeListCache next
      Pointer to the next object on the list, only meaningful when actually stored in the free list.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fLength

        int fLength
        Cached node list length.
      • fChildIndex

        int fChildIndex
        Last requested node index.
      • fChild

        ChildNode fChild
        Last requested node.
      • next

        NodeListCache next
        Pointer to the next object on the list, only meaningful when actually stored in the free list.
    • Constructor Detail

      • NodeListCache

        NodeListCache​(ParentNode owner)