Class LexerMatchers


  • public final class LexerMatchers
    extends Object
    • Method Detail

      • hasToken

        public static org.hamcrest.Matcher<List<Token>> hasToken​(String tokenValue)
      • hasOriginalToken

        public static org.hamcrest.Matcher<List<Token>> hasOriginalToken​(String tokenValue)
      • hasToken

        public static org.hamcrest.Matcher<List<Token>> hasToken​(TokenType tokenType)
      • hasTokens

        public static org.hamcrest.Matcher<List<Token>> hasTokens​(String... tokenValues)
      • hasLastToken

        public static org.hamcrest.Matcher<List<Token>> hasLastToken​(String tokenValue,
                                                                     TokenType tokenType)
      • hasComment

        public static org.hamcrest.Matcher<List<Token>> hasComment​(String commentValue)
      • hasComment

        public static org.hamcrest.Matcher<List<Token>> hasComment​(String commentValue,
                                                                   int commentLine)
      • hasOriginalComment

        public static org.hamcrest.Matcher<List<Token>> hasOriginalComment​(String commentValue)
      • hasOriginalComment

        public static org.hamcrest.Matcher<List<Token>> hasOriginalComment​(String commentValue,
                                                                           int commentLine)