限定符和类型 | 方法和说明 |
---|---|
void |
Node.collectInto(NodeList list,
NodeFilter filter)
Collect this node and its child nodes into a list, provided the node
satisfies the filtering criteria.
|
NodeList |
Parser.extractAllNodesThatMatch(NodeFilter filter)
Extract all nodes matching the given filter.
|
NodeList |
Parser.parse(NodeFilter filter) |
限定符和类型 | 方法和说明 |
---|---|
NodeFilter[] |
FilterBean.getFilters()
Get the current filter set.
|
限定符和类型 | 方法和说明 |
---|---|
void |
FilterBean.setFilters(NodeFilter[] filters)
Set the filters for the bean.
|
限定符和类型 | 类和说明 |
---|---|
class |
AndFilter
Accepts nodes matching all of its predicate filters (AND operation).
|
class |
CssSelectorNodeFilter
A NodeFilter that accepts nodes based on whether they match a CSS2 selector.
|
class |
HasAttributeFilter
This class accepts all tags that have a certain attribute,
and optionally, with a certain value.
|
class |
HasChildFilter
This class accepts all tags that have a child acceptable to the filter.
|
class |
HasParentFilter
This class accepts all tags that have a parent acceptable to another filter.
|
class |
HasSiblingFilter
This class accepts all tags that have a sibling acceptable to another filter.
|
class |
IsEqualFilter
This class accepts only one specific node.
|
class |
LinkRegexFilter
This class accepts tags of class LinkTag that contain a link matching a given
regex pattern.
|
class |
LinkStringFilter
This class accepts tags of class LinkTag that contain a link matching a given
pattern string.
|
class |
NodeClassFilter
This class accepts all tags of a given class.
|
class |
NotFilter
Accepts all nodes not acceptable to it's predicate filter.
|
class |
OrFilter
Accepts nodes matching any of its predicates filters (OR operation).
|
class |
RegexFilter
This filter accepts all string nodes matching a regular expression.
|
class |
StringFilter
This class accepts all string nodes containing the given string.
|
class |
TagNameFilter
This class accepts all tags matching the tag name.
|
class |
XorFilter
Accepts nodes matching an odd number of its predicates filters (XOR operation).
|
限定符和类型 | 方法和说明 |
---|---|
NodeFilter |
HasChildFilter.getChildFilter()
Get the filter used by this HasParentFilter.
|
NodeFilter |
HasParentFilter.getParentFilter()
Get the filter used by this HasParentFilter.
|
NodeFilter |
NotFilter.getPredicate()
Get the predicate used by this NotFilter.
|
NodeFilter[] |
XorFilter.getPredicates()
Get the predicates used by this XorFilter.
|
NodeFilter[] |
OrFilter.getPredicates()
Get the predicates used by this OrFilter.
|
NodeFilter[] |
AndFilter.getPredicates()
Get the predicates used by this AndFilter.
|
NodeFilter |
HasSiblingFilter.getSiblingFilter()
Get the filter used by this HasSiblingFilter.
|
限定符和类型 | 方法和说明 |
---|---|
void |
HasChildFilter.setChildFilter(NodeFilter filter)
Set the filter for this HasParentFilter.
|
void |
HasParentFilter.setParentFilter(NodeFilter filter)
Set the filter for this HasParentFilter.
|
void |
NotFilter.setPredicate(NodeFilter predicate)
Set the predicate for this NotFilter.
|
void |
XorFilter.setPredicates(NodeFilter[] predicates)
Set the predicates for this XorFilter.
|
void |
OrFilter.setPredicates(NodeFilter[] predicates)
Set the predicates for this OrFilter.
|
void |
AndFilter.setPredicates(NodeFilter[] predicates)
Set the predicates for this AndFilter.
|
void |
HasSiblingFilter.setSiblingFilter(NodeFilter filter)
Set the filter for this HasSiblingFilter.
|
构造器和说明 |
---|
AndFilter(NodeFilter[] predicates)
Creates an AndFilter that accepts nodes acceptable to all given filters.
|
AndFilter(NodeFilter left,
NodeFilter right)
Creates an AndFilter that accepts nodes acceptable to both filters.
|
HasChildFilter(NodeFilter filter)
Creates a new instance of HasChildFilter that accepts nodes
with a direct child acceptable to the filter.
|
HasChildFilter(NodeFilter filter,
boolean recursive)
Creates a new instance of HasChildFilter that accepts nodes
with a child acceptable to the filter.
|
HasParentFilter(NodeFilter filter)
Creates a new instance of HasParentFilter that accepts nodes with
the direct parent acceptable to the filter.
|
HasParentFilter(NodeFilter filter,
boolean recursive)
Creates a new instance of HasParentFilter that accepts nodes with
a parent acceptable to the filter.
|
HasSiblingFilter(NodeFilter filter)
Creates a new instance of HasSiblingFilter that accepts nodes
with sibling acceptable to the filter.
|
NotFilter(NodeFilter predicate)
Creates a NotFilter that accepts nodes not acceptable to the predicate.
|
OrFilter(NodeFilter[] predicates)
Creates an OrFilter that accepts nodes acceptable to any of the given filters.
|
OrFilter(NodeFilter left,
NodeFilter right)
Creates an OrFilter that accepts nodes acceptable to either filter.
|
XorFilter(NodeFilter[] predicates)
Creates an XorFilter that accepts nodes acceptable an odd number of the given filters.
|
XorFilter(NodeFilter left,
NodeFilter right)
Creates an XorFilter that accepts nodes acceptable to either filter, but not both.
|
限定符和类型 | 方法和说明 |
---|---|
void |
AbstractNode.collectInto(NodeList list,
NodeFilter filter)
Collect this node and its child nodes (if-applicable) into the collectionList parameter, provided the node
satisfies the filtering criteria.
|
限定符和类型 | 方法和说明 |
---|---|
NodeFilter |
SiteCapturer.getFilter()
Getter for property filter.
|
限定符和类型 | 方法和说明 |
---|---|
void |
SiteCapturer.setFilter(NodeFilter filter)
Setter for property filter.
|
限定符和类型 | 类和说明 |
---|---|
class |
Filter
Base class for all filters.
|
限定符和类型 | 方法和说明 |
---|---|
abstract NodeFilter |
Filter.getNodeFilter()
Get the underlying node filter object.
|
abstract NodeFilter[] |
Filter.getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
限定符和类型 | 方法和说明 |
---|---|
abstract void |
Filter.setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
abstract void |
Filter.setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
static Filter |
Filter.wrap(NodeFilter filter,
Parser context)
Returns a wrapped filter.
|
限定符和类型 | 类和说明 |
---|---|
class |
AndFilterWrapper
Wrapper for AndFilters.
|
class |
HasAttributeFilterWrapper
Wrapper for HasAttributeFilters.
|
class |
HasChildFilterWrapper
Wrapper for HasChildFilters.
|
class |
HasParentFilterWrapper
Wrapper for HasParentFilters.
|
class |
HasSiblingFilterWrapper
Wrapper for HasSiblingFilters.
|
class |
NodeClassFilterWrapper
Wrapper for NodeClassFilters.
|
class |
NotFilterWrapper
Wrapper for NotFilters.
|
class |
OrFilterWrapper
Wrapper for OrFilters.
|
class |
RegexFilterWrapper
Wrapper for RegexFilters.
|
class |
StringFilterWrapper
Wrapper for StringFilters.
|
class |
TagNameFilterWrapper
Wrapper for TagNameFilters.
|
限定符和类型 | 方法和说明 |
---|---|
NodeFilter |
TagNameFilterWrapper.getNodeFilter()
Get the underlying node filter object.
|
NodeFilter |
StringFilterWrapper.getNodeFilter()
Get the underlying node filter object.
|
NodeFilter |
RegexFilterWrapper.getNodeFilter()
Get the underlying node filter object.
|
NodeFilter |
OrFilterWrapper.getNodeFilter()
Get the underlying node filter object.
|
NodeFilter |
NotFilterWrapper.getNodeFilter()
Get the underlying node filter object.
|
NodeFilter |
NodeClassFilterWrapper.getNodeFilter()
Get the underlying node filter object.
|
NodeFilter |
HasSiblingFilterWrapper.getNodeFilter()
Get the underlying node filter object.
|
NodeFilter |
HasParentFilterWrapper.getNodeFilter()
Get the underlying node filter object.
|
NodeFilter |
HasChildFilterWrapper.getNodeFilter()
Get the underlying node filter object.
|
NodeFilter |
HasAttributeFilterWrapper.getNodeFilter()
Get the underlying node filter object.
|
NodeFilter |
AndFilterWrapper.getNodeFilter()
Get the underlying node filter object.
|
NodeFilter[] |
TagNameFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
NodeFilter[] |
StringFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
NodeFilter[] |
RegexFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
NodeFilter[] |
OrFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
NodeFilter[] |
NotFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
NodeFilter[] |
NodeClassFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
NodeFilter[] |
HasSiblingFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
NodeFilter[] |
HasParentFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
NodeFilter[] |
HasChildFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
NodeFilter[] |
HasAttributeFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
NodeFilter[] |
AndFilterWrapper.getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
限定符和类型 | 方法和说明 |
---|---|
void |
TagNameFilterWrapper.setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
void |
StringFilterWrapper.setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
void |
RegexFilterWrapper.setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
void |
OrFilterWrapper.setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
void |
NotFilterWrapper.setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
void |
NodeClassFilterWrapper.setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
void |
HasSiblingFilterWrapper.setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
void |
HasParentFilterWrapper.setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
void |
HasChildFilterWrapper.setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
void |
HasAttributeFilterWrapper.setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
void |
AndFilterWrapper.setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
void |
TagNameFilterWrapper.setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
void |
StringFilterWrapper.setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
void |
RegexFilterWrapper.setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
void |
OrFilterWrapper.setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
void |
NotFilterWrapper.setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
void |
NodeClassFilterWrapper.setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
void |
HasSiblingFilterWrapper.setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
void |
HasParentFilterWrapper.setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
void |
HasChildFilterWrapper.setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
void |
HasAttributeFilterWrapper.setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
void |
AndFilterWrapper.setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
限定符和类型 | 方法和说明 |
---|---|
void |
CompositeTag.collectInto(NodeList list,
NodeFilter filter)
Collect this node and its child nodes (if-applicable) into the list parameter,
provided the node satisfies the filtering criteria.
|
限定符和类型 | 方法和说明 |
---|---|
NodeList |
NodeList.extractAllNodesThatMatch(NodeFilter filter)
Filter the list with the given filter non-recursively.
|
NodeList |
NodeList.extractAllNodesThatMatch(NodeFilter filter,
boolean recursive)
Filter the list with the given filter.
|
void |
NodeList.keepAllNodesThatMatch(NodeFilter filter)
Remove nodes not matching the given filter non-recursively.
|
void |
NodeList.keepAllNodesThatMatch(NodeFilter filter,
boolean recursive)
Remove nodes not matching the given filter.
|
static java.lang.String[] |
ParserUtils.splitTags(java.lang.String input,
NodeFilter filter) |
static java.lang.String[] |
ParserUtils.splitTags(java.lang.String input,
NodeFilter filter,
boolean recursive,
boolean insideTag) |
static java.lang.String |
ParserUtils.trimTags(java.lang.String input,
NodeFilter filter) |
static java.lang.String |
ParserUtils.trimTags(java.lang.String input,
NodeFilter filter,
boolean recursive,
boolean insideTag) |