Package org.mozilla.zest.core.v1
Interface ZestLoopTokenSet<T>
-
- Type Parameters:
T- the generic type
- All Known Implementing Classes:
ZestLoopTokenClientElementsSet,ZestLoopTokenFileSet,ZestLoopTokenIntegerSet,ZestLoopTokenRegexSet,ZestLoopTokenStringSet
public interface ZestLoopTokenSet<T>this class represents a Set of loop tokens.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ZestLoopTokenSet<T>deepCopy()Deep copy.ZestLoopState<T>getFirstState()Gets the first state.TgetLastToken()returns the last token the loop may consider.TgetToken(int index)returns the token at a given index.intindexOf(T token)returns the index of a given token.intsize()returns the size of this set.
-
-
-
Method Detail
-
getToken
T getToken(int index)
returns the token at a given index.- Parameters:
index- the index of the token- Returns:
- the token at the given index
-
indexOf
int indexOf(T token)
returns the index of a given token.- Parameters:
token- the token whose index we are searching for- Returns:
- the index of the token
-
getLastToken
T getLastToken()
returns the last token the loop may consider.- Returns:
- the last token the loop may consider
-
size
int size()
returns the size of this set.- Returns:
- the size of this set
-
deepCopy
ZestLoopTokenSet<T> deepCopy()
Deep copy.- Returns:
- the zest loop token set
-
getFirstState
ZestLoopState<T> getFirstState()
Gets the first state.- Returns:
- the first state
-
-