org.sonar.duplications.statement.matcher
Class TokenMatcher

java.lang.Object
  extended by org.sonar.duplications.statement.matcher.TokenMatcher
Direct Known Subclasses:
AnyTokenMatcher, BridgeTokenMatcher, BridgeWithExceptionTokenMatcher, ExactTokenMatcher, ForgetLastTokenMatcher, OptTokenMatcher, UptoTokenMatcher

public abstract class TokenMatcher
extends Object


Constructor Summary
TokenMatcher()
           
 
Method Summary
abstract  boolean matchToken(TokenQueue tokenQueue, List<Token> matchedTokenList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenMatcher

public TokenMatcher()
Method Detail

matchToken

public abstract boolean matchToken(TokenQueue tokenQueue,
                                   List<Token> matchedTokenList)
Parameters:
tokenQueue - queue of tokens for consumption, which contains at least one element
matchedTokenList - list to populate by tokens, which were consumed
Returns:
true if tokens were consumed successfully


Copyright © 2009-2012 SonarSource. All Rights Reserved.