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 Element
element()
The element currently being iterated on.int
The index of the element currently being iterated on.int
The number of elements currently being iterated on.match()
The element in the set of matched elements from which this callback is made.int
The index of the element in the set of matched elements from which this callback is made.int
The 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:Context
The element currently being iterated on.If not further specified, this is the same as
Context.match()
-
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 interfaceContext
-
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 interfaceContext
-
match
Description copied from interface:Context
The element in the set of matched elements from which this callback is made. -
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 interfaceContext
-
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. -
toString
-