org.sonar.duplications.statement.matcher
Class ForgetLastTokenMatcher
java.lang.Object
org.sonar.duplications.statement.matcher.TokenMatcher
org.sonar.duplications.statement.matcher.ForgetLastTokenMatcher
public class ForgetLastTokenMatcher
- extends TokenMatcher
Last token would be returned to the queue.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForgetLastTokenMatcher
public ForgetLastTokenMatcher()
matchToken
public boolean matchToken(TokenQueue tokenQueue,
List<Token> matchedTokenList)
- Specified by:
matchToken
in class TokenMatcher
- Parameters:
tokenQueue
- queue of tokens for consumption, which contains at least one elementmatchedTokenList
- list to populate by tokens, which were consumed
- Returns:
- always true
Copyright © 2009-2011 SonarSource. All Rights Reserved.