org.sonar.duplications.token
Class TokenQueue
java.lang.Object
org.sonar.duplications.token.TokenQueue
- All Implemented Interfaces:
- Iterable<Token>
public class TokenQueue
- extends Object
- implements Iterable<Token>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenQueue
public TokenQueue(List<Token> tokenList)
TokenQueue
public TokenQueue()
peek
public Token peek()
- Retrieves, but does not remove, token from this queue.
- Returns:
- token from this queue, or null if this queue is empty.
poll
public Token poll()
- Retrieves and removes token from this queue.
- Returns:
- token from this queue, or null if this queue is empty.
size
public int size()
add
public void add(Token token)
isNextTokenValue
public boolean isNextTokenValue(String expectedValue)
iterator
public Iterator<Token> iterator()
- Specified by:
iterator
in interface Iterable<Token>
pushForward
public void pushForward(List<Token> matchedTokenList)
Copyright © 2009-2012 SonarSource. All Rights Reserved.