Package com.sonar.sslr.test.lexer
Class LexerMatchers
- java.lang.Object
-
- com.sonar.sslr.test.lexer.LexerMatchers
-
public final class LexerMatchers extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.hamcrest.Matcher<List<Token>>hasComment(String commentValue)static org.hamcrest.Matcher<List<Token>>hasComment(String commentValue, int commentLine)static org.hamcrest.Matcher<List<Token>>hasLastToken(String tokenValue, TokenType tokenType)static org.hamcrest.Matcher<List<Token>>hasOriginalComment(String commentValue)static org.hamcrest.Matcher<List<Token>>hasOriginalComment(String commentValue, int commentLine)static org.hamcrest.Matcher<List<Token>>hasOriginalToken(String tokenValue)static org.hamcrest.Matcher<List<Token>>hasToken(TokenType tokenType)static org.hamcrest.Matcher<List<Token>>hasToken(String tokenValue)static org.hamcrest.Matcher<List<Token>>hasToken(String tokenValue, TokenType tokenType)static org.hamcrest.Matcher<List<Token>>hasTokens(String... tokenValues)
-
-
-
Method Detail
-
hasToken
public static org.hamcrest.Matcher<List<Token>> hasToken(String tokenValue, TokenType tokenType)
-
hasOriginalToken
public static org.hamcrest.Matcher<List<Token>> hasOriginalToken(String tokenValue)
-
hasLastToken
public static org.hamcrest.Matcher<List<Token>> hasLastToken(String tokenValue, TokenType tokenType)
-
hasComment
public static org.hamcrest.Matcher<List<Token>> hasComment(String commentValue, int commentLine)
-
hasOriginalComment
public static org.hamcrest.Matcher<List<Token>> hasOriginalComment(String commentValue)
-
-