Class DefaultContext
java.lang.Object
org.joox.DefaultContext
- All Implemented Interfaces:
Context
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultContext(Element match, int matchIndex, int matchSize) DefaultContext(Element match, int matchIndex, int matchSize, Element element, int elementIndex, int elementSize) -
Method Summary
Modifier and TypeMethodDescriptionfinal Elementelement()The element currently being iterated on.intThe index of the element currently being iterated on.intThe number of elements currently being iterated on.match()The element in the set of matched elements from which this callback is made.intThe index of the element in the set of matched elements from which this callback is made.intThe number of elements in the set of matched elements from which this callback is made.toString()
-
Field Details
-
match
-
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
DefaultContext(Element match, int matchIndex, int matchSize)
-
-
Method Details
-
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
-
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
-
toString
-