@Test public void test_token() { TokenType tokenType = mock(TokenType.class); ParsingExpression e = mock(ParsingExpression.class); Object result = GrammarOperators.token(tokenType, e); assertThat(result).isInstanceOf(TokenExpression.class); assertThat(((TokenExpression) result).getTokenType()).isSameAs(tokenType); }
@Deprecated public static Object token(TokenType tokenType, Object e) { return new TokenExpression(tokenType, convertToExpression(e)); }
GrammarOperators { @Deprecated public static Object token(TokenType tokenType, Object e) { return new TokenExpression(tokenType, convertToExpression(e)); } }
GrammarOperators { @Deprecated public static Object token(TokenType tokenType, Object e) { return new TokenExpression(tokenType, convertToExpression(e)); } private  GrammarOperators(); }
GrammarOperators { @Deprecated public static Object token(TokenType tokenType, Object e) { return new TokenExpression(tokenType, convertToExpression(e)); } private  GrammarOperators(); @Deprecated static Object sequence(Object... e); @Deprecated static Object firstOf(Object... e); @Deprecated static Object optional(Object... e); @Deprecated static Object oneOrMore(Object... e); @Deprecated static Object zeroOrMore(Object... e); @Deprecated static Object next(Object... e); @Deprecated static Object nextNot(Object... e); @Deprecated static Object regexp(String regexp); @Deprecated static Object endOfInput(); @Deprecated static Object nothing(); @Deprecated static Object token(TokenType tokenType, Object e); @Deprecated static Object commentTrivia(Object e); @Deprecated static Object skippedTrivia(Object e); }
GrammarOperators { @Deprecated public static Object token(TokenType tokenType, Object e) { return new TokenExpression(tokenType, convertToExpression(e)); } private  GrammarOperators(); @Deprecated static Object sequence(Object... e); @Deprecated static Object firstOf(Object... e); @Deprecated static Object optional(Object... e); @Deprecated static Object oneOrMore(Object... e); @Deprecated static Object zeroOrMore(Object... e); @Deprecated static Object next(Object... e); @Deprecated static Object nextNot(Object... e); @Deprecated static Object regexp(String regexp); @Deprecated static Object endOfInput(); @Deprecated static Object nothing(); @Deprecated static Object token(TokenType tokenType, Object e); @Deprecated static Object commentTrivia(Object e); @Deprecated static Object skippedTrivia(Object e);  }