Class ChildJNode

java.lang.Object
net.sf.saxon.ma.jnode.JNode
net.sf.saxon.ma.jnode.ChildJNode
All Implemented Interfaces:
GNode, GroundedValue, Item, Sequence, SiblingCountingNode
Direct Known Subclasses:
JNodeForArrayMember, JNodeForMapEntry

public abstract class ChildJNode extends JNode implements SiblingCountingNode
  • Field Details

    • parent

      protected final JNode parent
    • position

      protected final int position
    • selector

      protected final AtomicValue selector
    • value

      protected final GroundedValue value
  • Constructor Details

  • Method Details

    • getContent

      public GroundedValue getContent()
      Description copied from class: JNode
      Get the value of the content property
      Specified by:
      getContent in class JNode
      Returns:
      the content of the JNode
    • getPosition

      public int getPosition()
      Description copied from class: JNode
      Get the value of the position property
      Specified by:
      getPosition in class JNode
      Returns:
      the position
    • getSelector

      public AtomicValue getSelector()
      Description copied from class: JNode
      Get the value of the selector property
      Specified by:
      getSelector in class JNode
      Returns:
      the selector. Returns null if the property is absent (for a root JNode)
    • getParent

      public JNode getParent()
      Description copied from class: JNode
      Get the parent of this JNode
      Specified by:
      getParent in interface GNode
      Specified by:
      getParent in class JNode
      Returns:
      the value of the parent property
    • iterateChildAxis

      public SequenceIterator iterateChildAxis(NodePredicate predicate)
      Get an iterator over the child axis, starting at this node; the nodes will be in document order.
      Specified by:
      iterateChildAxis in interface GNode
      Parameters:
      predicate - a condition that the nodes must satisfy, or null
      Returns:
      the required iterator
    • iterateFollowingSiblingAxis

      public abstract SequenceIterator iterateFollowingSiblingAxis(NodePredicate predicate)
      Get an iterator over the following-sibling axis, starting at this node; the nodes will be in document order.
      Specified by:
      iterateFollowingSiblingAxis in interface GNode
      Parameters:
      predicate - a condition that the nodes must satisfy, or null
      Returns:
      the required iterator
    • iteratePrecedingSiblingAxis

      public abstract SequenceIterator iteratePrecedingSiblingAxis(NodePredicate predicate)
      Get an iterator over the preceding-sibling axis, starting at this node; the nodes will be in reverse document order.
      Specified by:
      iteratePrecedingSiblingAxis in interface GNode
      Parameters:
      predicate - a condition that the nodes must satisfy, or null
      Returns:
      the required iterator