public class NotFilter extends java.lang.Object implements NodeFilter
构造器和说明 |
---|
NotFilter()
Creates a new instance of a NotFilter.
|
NotFilter(NodeFilter predicate)
Creates a NotFilter that accepts nodes not acceptable to the predicate.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
accept(Node node)
Accept nodes that are not acceptable to the predicate filter.
|
NodeFilter |
getPredicate()
Get the predicate used by this NotFilter.
|
void |
setPredicate(NodeFilter predicate)
Set the predicate for this NotFilter.
|
public NotFilter()
false
from accept(org.htmlparser.Node)
.public NotFilter(NodeFilter predicate)
predicate
- The filter to consult.public NodeFilter getPredicate()
public void setPredicate(NodeFilter predicate)
predicate
- The predidcate to use in accept(org.htmlparser.Node)
.public boolean accept(Node node)
accept
在接口中 NodeFilter
node
- The node to check.true
if the node is not acceptable to the
predicate filter, false
otherwise.