public final class LexerMatchers extends Object
| Modifier and Type | Method and 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(String tokenValue) |
static org.hamcrest.Matcher<List<Token>> |
hasToken(String tokenValue,
TokenType tokenType) |
static org.hamcrest.Matcher<List<Token>> |
hasToken(TokenType tokenType) |
static org.hamcrest.Matcher<List<Token>> |
hasTokens(String... tokenValues) |
public static org.hamcrest.Matcher<List<Token>> hasToken(String tokenValue, TokenType tokenType)
public static org.hamcrest.Matcher<List<Token>> hasOriginalToken(String tokenValue)
public static org.hamcrest.Matcher<List<Token>> hasLastToken(String tokenValue, TokenType tokenType)
public static org.hamcrest.Matcher<List<Token>> hasComment(String commentValue, int commentLine)
public static org.hamcrest.Matcher<List<Token>> hasOriginalComment(String commentValue)
Copyright © 2010–2015 SonarSource. All rights reserved.