- java.lang.Object
-
- org.joox.DefaultContext
-
-
Field Summary
Fields Modifier and Type Field Description private org.w3c.dom.Elementelementprivate intelementIndexprivate intelementSizeprivate org.w3c.dom.Elementmatchprivate intmatchIndexprivate intmatchSize
-
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.Elementelement()The element currently being iterated on.intelementIndex()The index of the element currently being iterated on.intelementSize()The number of elements currently being iterated on.org.w3c.dom.Elementmatch()The element in the set of matched elements from which this callback is made.intmatchIndex()The index of the element in the set of matched elements from which this callback is made.intmatchSize()The number of elements in the set of matched elements from which this callback is made.java.lang.StringtoString()
-
-
-
Method Detail
-
element
public final org.w3c.dom.Element element()
Description copied from interface:ContextThe element currently being iterated on.If not further specified, this is the same as
Context.match()
-
elementIndex
public int elementIndex()
Description copied from interface:ContextThe index of the element currently being iterated on.If not further specified, this is the same as
Context.matchIndex()- Specified by:
elementIndexin interfaceContext
-
elementSize
public int elementSize()
Description copied from interface:ContextThe number of elements currently being iterated on.If not further specified, this is the same as
Context.matchSize()- Specified by:
elementSizein interfaceContext
-
match
public org.w3c.dom.Element match()
Description copied from interface:ContextThe element in the set of matched elements from which this callback is made.
-
matchIndex
public int matchIndex()
Description copied from interface:ContextThe index of the element in the set of matched elements from which this callback is made.- Specified by:
matchIndexin interfaceContext
-
matchSize
public int matchSize()
Description copied from interface:ContextThe number of elements in the set of matched elements from which this callback is made.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-