Package org.joox

Class DefaultContext

  • All Implemented Interfaces:
    Context

    class DefaultContext
    extends java.lang.Object
    implements Context
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultContext​(org.w3c.dom.Element match, int matchIndex, int matchSize)  
      DefaultContext​(org.w3c.dom.Element match, int matchIndex, int matchSize, org.w3c.dom.Element element, int elementIndex, int elementSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.w3c.dom.Element element()
      The element currently being iterated on.
      int elementIndex()
      The index of the element currently being iterated on.
      int elementSize()
      The number of elements currently being iterated on.
      org.w3c.dom.Element match()
      The element in the set of matched elements from which this callback is made.
      int matchIndex()
      The index of the element in the set of matched elements from which this callback is made.
      int matchSize()
      The number of elements in the set of matched elements from which this callback is made.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • match

        private final org.w3c.dom.Element match
      • element

        private final org.w3c.dom.Element element
      • matchIndex

        private final int matchIndex
      • elementIndex

        private final int elementIndex
      • matchSize

        private final int matchSize
      • elementSize

        private final int elementSize
    • Constructor Detail

      • DefaultContext

        DefaultContext​(org.w3c.dom.Element match,
                       int matchIndex,
                       int matchSize,
                       org.w3c.dom.Element element,
                       int elementIndex,
                       int elementSize)
      • DefaultContext

        DefaultContext​(org.w3c.dom.Element match,
                       int matchIndex,
                       int matchSize)
    • Method Detail

      • element

        public final org.w3c.dom.Element element()
        Description copied from interface: Context
        The element currently being iterated on.

        If not further specified, this is the same as Context.match()

        Specified by:
        element in interface Context
      • elementIndex

        public int elementIndex()
        Description copied from interface: Context
        The index of the element currently being iterated on.

        If not further specified, this is the same as Context.matchIndex()

        Specified by:
        elementIndex in interface Context
      • elementSize

        public int elementSize()
        Description copied from interface: Context
        The number of elements currently being iterated on.

        If not further specified, this is the same as Context.matchSize()

        Specified by:
        elementSize in interface Context
      • match

        public org.w3c.dom.Element match()
        Description copied from interface: Context
        The element in the set of matched elements from which this callback is made.
        Specified by:
        match in interface Context
      • matchIndex

        public int matchIndex()
        Description copied from interface: Context
        The index of the element in the set of matched elements from which this callback is made.
        Specified by:
        matchIndex in interface Context
      • matchSize

        public int matchSize()
        Description copied from interface: Context
        The number of elements in the set of matched elements from which this callback is made.
        Specified by:
        matchSize in interface Context
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object