|
||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Filter in org.joox |
---|
Subinterfaces of Filter in org.joox | |
---|---|
interface |
FastFilter
A filter indicating whether an element/index should be kept when reducing an Match node set
In addition to the filtering functionality, this marker interface can be used
to indicate that Context.elementSize() may not be needed for
filtering. |
Methods in org.joox that return Filter | |
---|---|
static Filter |
JOOX.and(Filter... filters)
Combine filters |
static Filter |
JOOX.not(Filter filter)
Inverse a filter |
static Filter |
JOOX.or(Filter... filters)
Combine filters |
static Filter |
JOOX.selector(String selector)
A filter that returns all elements matched by a given selector. |
Methods in org.joox with parameters of type Filter | |
---|---|
static Filter |
JOOX.and(Filter... filters)
Combine filters |
Match |
Match.child(Filter filter)
Find the first matching child of each element in the current set of matched elements |
Match |
Match.children(Filter filter)
Find all children of each element in the current set of matched elements. |
Match |
Match.filter(Filter filter)
Reduce the current set of matched elements. |
Match |
Match.find(Filter filter)
Find all descendants of each element in the current set of matched elements. |
Match |
Match.has(Filter filter)
Reduce the set of matched element to those who have a descendant that matches a filter. |
boolean |
Match.is(Filter filter)
Check if at least one element in the set of matched elements satisfies a filter. |
Match |
Match.next(Filter filter)
Get the immediate next sibling of every element in set of matched elements, matching a filter The callback Context is populated like this:
Context.match() - the matched element whose next sibling is
searched
Context.matchIndex() - the index of the matched element whose
next sibling is searched
Context.element() - the next sibling that is being filtered
Context.elementIndex() - 1
|
Match |
Match.nextAll(Filter filter)
Get all next siblings of every element in a set of matched elements, matching a filter The callback Context is populated like this:
Context.match() - the matched element whose next siblings are
searched
Context.matchIndex() - the index of the matched element whose
next siblings are searched
Context.element() - the next siblings that is being filtered
Context.elementIndex() - the relative index of the next
siblings that are being filtered
|
Match |
Match.nextUntil(Filter until)
Get all next siblings of every element in a set of matched elements until the provided filter matches The callback Context is populated like this:
Context.match() - the matched element whose next siblings are
searched
Context.matchIndex() - the index of the matched element whose
next siblings are searched
Context.element() - the next siblings that is being filtered
Context.elementIndex() - the relative index of the next
siblings that are being filtered
|
Match |
Match.nextUntil(Filter until,
Filter filter)
Get all next siblings of every element in a set of matched elements, matching a filter until the provided filter matches The callback Context is populated like this:
Context.match() - the matched element whose next siblings are
searched
Context.matchIndex() - the index of the matched element whose
next siblings are searched
Context.element() - the next siblings that is being filtered
Context.elementIndex() - the relative index of the next
siblings that are being filtered
|
Match |
Match.nextUntil(Filter until,
String selector)
Get all next siblings of every element in a set of matched elements, matching a selector until the provided filter matches The callback Context is populated like this:
Context.match() - the matched element whose next siblings are
searched
Context.matchIndex() - the index of the matched element whose
next siblings are searched
Context.element() - the next siblings that is being filtered
Context.elementIndex() - the relative index of the next
siblings that are being filtered
|
Match |
Match.nextUntil(String until,
Filter filter)
Get all next siblings of every element in a set of matched elements, matching a filter, until the provided selector matches The callback Context is populated like this:
Context.match() - the matched element whose next siblings are
searched
Context.matchIndex() - the index of the matched element whose
next siblings are searched
Context.element() - the next siblings that is being filtered
Context.elementIndex() - the relative index of the next
siblings that are being filtered
|
Match |
Match.not(Filter filter)
Remove elements from the set of matched elements. |
static Filter |
JOOX.not(Filter filter)
Inverse a filter |
static Filter |
JOOX.or(Filter... filters)
Combine filters |
Match |
Match.parent(Filter filter)
Get the immediate parent elements of every element in a set of matched elements, matching a filter The callback Context is populated like this:
Context.match() - the matched element whose parent is
searched
Context.matchIndex() - the index of the matched element whose
parent is searched
Context.element() - the parent that is being filtered
Context.elementIndex() - 1
|
Match |
Match.parents(Filter filter)
Get all ancestor elements of every element in a set of matched elements, matching a filter The callback Context is populated like this:
Context.match() - the matched element whose parents are
searched
Context.matchIndex() - the index of the matched element whose
parents are searched
Context.element() - the parent that is being filtered
Context.elementIndex() - the relative index of the parent
that is being filtered
|
Match |
Match.parentsUntil(Filter until)
Get all ancestors of every element in a set of matched elements until the provided filter matches The callback Context is populated like this:
Context.match() - the matched element whose parents are
searched
Context.matchIndex() - the index of the matched element whose
parents are searched
Context.element() - the parent that is being filtered
Context.elementIndex() - the relative index of the parent
that is being filtered
|
Match |
Match.parentsUntil(Filter until,
Filter filter)
Get all ancestors of every element in a set of matched elements, matching a filter until the provided filter matches The callback Context is populated like this:
Context.match() - the matched element whose parents are
searched
Context.matchIndex() - the index of the matched element whose
parents are searched
Context.element() - the parent that is being filtered
Context.elementIndex() - the relative index of the parent
that is being filtered
|
Match |
Match.parentsUntil(Filter until,
String selector)
Get all ancestors of every element in a set of matched elements, matching a selector until the provided filter matches The callback Context is populated like this:
Context.match() - the matched element whose parents are
searched
Context.matchIndex() - the index of the matched element whose
parents are searched
Context.element() - the parent that is being filtered
Context.elementIndex() - the relative index of the parent
that is being filtered
|
Match |
Match.parentsUntil(String until,
Filter filter)
Get all ancestors of every element in a set of matched elements, matching a filter, until the provided selector matches The callback Context is populated like this:
Context.match() - the matched element whose parents are
searched
Context.matchIndex() - the index of the matched element whose
parents are searched
Context.element() - the parent that is being filtered
Context.elementIndex() - the relative index of the parent
that is being filtered
|
Match |
Match.prev(Filter filter)
Get the immediate previous sibling of every element in set of matched elements, matching a filter The callback Context is populated like this:
Context.match() - the matched element whose previous sibling
is searched
Context.matchIndex() - the index of the matched element whose
previous sibling is searched
Context.element() - the previous sibling that is being
filtered
Context.elementIndex() - 1
|
Match |
Match.prevAll(Filter filter)
Get all previous siblings of every element in a set of matched elements, matching a filter The callback Context is populated like this:
Context.match() - the matched element whose previous siblings
are searched
Context.matchIndex() - the index of the matched element whose
previous siblings are searched
Context.element() - the previous siblings that is being
filtered
Context.elementIndex() - the relative index of the previous
siblings that are being filtered
|
Match |
Match.prevUntil(Filter until)
Get all previous siblings of every element in a set of matched elements until the provided filter matches The callback Context is populated like this:
Context.match() - the matched element whose previous siblings
are searched
Context.matchIndex() - the index of the matched element whose
previous siblings are searched
Context.element() - the previous siblings that is being
filtered
Context.elementIndex() - the relative index of the previous
siblings that are being filtered
|
Match |
Match.prevUntil(Filter until,
Filter filter)
Get all previous siblings of every element in a set of matched elements, matching a filter until the provided filter matches The callback Context is populated like this:
Context.match() - the matched element whose previous siblings
are searched
Context.matchIndex() - the index of the matched element whose
previous siblings are searched
Context.element() - the previous siblings that is being
filtered
Context.elementIndex() - the relative index of the previous
siblings that are being filtered
|
Match |
Match.prevUntil(Filter until,
String selector)
Get all previous siblings of every element in a set of matched elements, matching a selector until the provided filter matches The callback Context is populated like this:
Context.match() - the matched element whose previous siblings
are searched
Context.matchIndex() - the index of the matched element whose
previous siblings are searched
Context.element() - the previous siblings that is being
filtered
Context.elementIndex() - the relative index of the previous
siblings that are being filtered
|
Match |
Match.prevUntil(String until,
Filter filter)
Get all previous siblings of every element in a set of matched elements, matching a filter, until the provided selector matches The callback Context is populated like this:
Context.match() - the matched element whose previous siblings
are searched
Context.matchIndex() - the index of the matched element whose
previous siblings are searched
Context.element() - the previous siblings that is being
filtered
Context.elementIndex() - the relative index of the previous
siblings that are being filtered
|
Match |
Match.remove(Filter filter)
Removes all elements in the set of matched elements, matching a filter The callback Context is populated like this:
Context.match() - the matched element being removed
Context.matchIndex() - the index of the matched element being
removed
|
Match |
Match.siblings(Filter filter)
Get all siblings of every element in a set of matched elements, matching a filter The callback Context is populated like this:
Context.match() - the matched element whose siblings are
searched
Context.matchIndex() - the index of the matched element whose
siblings are searched
Context.element() - the sibling that is being filtered
Context.elementIndex() - the relative index of the sibling
that is being filtered. |
|
||||||||
PREV NEXT | FRAMES NO FRAMES |