org.sonar.duplications.java
Class BridgeWithExceptionTokenMatcher

java.lang.Object
  extended by org.sonar.duplications.statement.matcher.TokenMatcher
      extended by org.sonar.duplications.java.BridgeWithExceptionTokenMatcher

public class BridgeWithExceptionTokenMatcher
extends TokenMatcher


Constructor Summary
BridgeWithExceptionTokenMatcher(String lToken, String rToken, String except)
           
 
Method Summary
 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

BridgeWithExceptionTokenMatcher

public BridgeWithExceptionTokenMatcher(String lToken,
                                       String rToken,
                                       String except)
Method Detail

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 element
matchedTokenList - list to populate by tokens, which were consumed
Returns:
true if tokens were consumed successfully


Copyright © 2009-2011 SonarSource. All Rights Reserved.