Package org.idpf.epubcheck.util.css
Class CssTokenList.CssTokenIterator
- java.lang.Object
-
- org.idpf.epubcheck.util.css.CssTokenList.CssTokenIterator
-
- Enclosing class:
- CssTokenList
class CssTokenList.CssTokenIterator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CssTokenIterator(com.google.common.base.Predicate<CssToken> filter, java.util.List<CssToken> list)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) com.google.common.base.Predicate<CssToken>filter()Get the filter that is currently being used for invocations of next() and hasNext()(package private) booleanhasNext()Using the constructor filter.(package private) booleanhasNext(com.google.common.base.Predicate<CssToken> filter)Using the supplied filter.(package private) intindex()Get the list index of the last element returned prior to filtering, or -1 if no element has yet been returned.(package private) CssTokennext()Get the next token in the token list.(package private) CssTokennext(com.google.common.base.Predicate<CssToken> filter)Get the next token in the token list that matches the given filter, or NoSuchElementException if no more tokens exist.CssTokenpeek()Get the next token without advancing the iterators position.CssTokenpeek(com.google.common.base.Predicate<CssToken> filter)Get the next token without advancing the iterators position.
-
-
-
Method Detail
-
next
CssToken next()
Get the next token in the token list. This method uses the constructor filter.
-
next
CssToken next(com.google.common.base.Predicate<CssToken> filter)
Get the next token in the token list that matches the given filter, or NoSuchElementException if no more tokens exist.
-
hasNext
boolean hasNext()
Using the constructor filter.
-
hasNext
boolean hasNext(com.google.common.base.Predicate<CssToken> filter)
Using the supplied filter.
-
peek
public CssToken peek()
Get the next token without advancing the iterators position.
-
peek
public CssToken peek(com.google.common.base.Predicate<CssToken> filter)
Get the next token without advancing the iterators position.
-
index
int index()
Get the list index of the last element returned prior to filtering, or -1 if no element has yet been returned.
-
filter
com.google.common.base.Predicate<CssToken> filter()
Get the filter that is currently being used for invocations of next() and hasNext()
-
-