Package us.codecraft.webmagic.selector
Class AndSelector
- java.lang.Object
-
- us.codecraft.webmagic.selector.AndSelector
-
-
Constructor Summary
Constructors Constructor Description AndSelector(java.util.List<Selector> selectors)
AndSelector(Selector... selectors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
select(java.lang.String text)
Extract single result in text.
If there are more than one result, only the first will be chosen.java.util.List<java.lang.String>
selectList(java.lang.String text)
Extract all results in text.
-
-
-
Method Detail
-
select
public java.lang.String select(java.lang.String text)
Description copied from interface:Selector
Extract single result in text.
If there are more than one result, only the first will be chosen.
-
selectList
public java.util.List<java.lang.String> selectList(java.lang.String text)
Description copied from interface:Selector
Extract all results in text.- Specified by:
selectList
in interfaceSelector
- Parameters:
text
- text- Returns:
- results
-
-