Package org.joox

Class DefaultContext

java.lang.Object
org.joox.DefaultContext
All Implemented Interfaces:
Context

class DefaultContext extends Object implements Context
  • Field Details

    • match

      private final Element match
    • element

      private final Element element
    • matchIndex

      private final int matchIndex
    • elementIndex

      private final int elementIndex
    • matchSize

      private final int matchSize
    • elementSize

      private final int elementSize
  • Constructor Details

    • DefaultContext

      DefaultContext(Element match, int matchIndex, int matchSize, Element element, int elementIndex, int elementSize)
    • DefaultContext

      DefaultContext(Element match, int matchIndex, int matchSize)
  • Method Details

    • element

      public final 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 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 String toString()
      Overrides:
      toString in class Object