Class CssTokenList.CssTokenIterator
java.lang.Object
org.idpf.epubcheck.util.css.CssTokenList.CssTokenIterator
- Enclosing class:
CssTokenList
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCssTokenIterator(com.google.common.base.Predicate<CssToken> filter, List<CssToken> list) Constructor. -
Method Summary
Modifier and TypeMethodDescription(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) booleanUsing 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) CssTokenGet the next token in the token list that matches the given filter, or NoSuchElementException if no more tokens exist.peek()Get the next token without advancing the iterators position.Get the next token without advancing the iterators position.
-
Field Details
-
filter
-
list
-
next
int next -
lastRet
int lastRet -
last
CssToken last
-
-
Constructor Details
-
CssTokenIterator
-
-
Method Details
-
next
CssToken next()Get the next token in the token list. This method uses the constructor filter. -
next
-
hasNext
boolean hasNext()Using the constructor filter. -
hasNext
Using the supplied filter. -
peek
Get the next token without advancing the iterators position. -
peek
-
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()
-