@Test public void testIsEmptyOperator() throws Exception { QueryLexer lexer = new QueryLexer(); Token[] tokens = lexer.tokens("category1.isEmpty()"); List<Token> listTokens = new ArrayList<Token>(); listTokens.add(new Token(Token.TYPE.RELATIONAL_OPERATOR_FUNC, ".isEmpty(")); listTokens.add(new Token(Token.TYPE.PROPERTY_OPERAND, "category1")); listTokens.add(new Token(Token.TYPE.BRACKET_CLOSE, ")")); assertArrayEquals(listTokens.toArray(new Token[listTokens.size()]), tokens); }
public Token[] tokens(String exp) throws InvalidQueryException { return tokens(exp, Collections.<String>emptySet()); }
QueryLexer { public Token[] tokens(String exp) throws InvalidQueryException { return tokens(exp, Collections.<String>emptySet()); } }
QueryLexer { public Token[] tokens(String exp) throws InvalidQueryException { return tokens(exp, Collections.<String>emptySet()); } QueryLexer(); }
QueryLexer { public Token[] tokens(String exp) throws InvalidQueryException { return tokens(exp, Collections.<String>emptySet()); } QueryLexer(); Token[] tokens(String exp); Token[] tokens(String exp, Collection<String> ignoreProperties); }
QueryLexer { public Token[] tokens(String exp) throws InvalidQueryException { return tokens(exp, Collections.<String>emptySet()); } QueryLexer(); Token[] tokens(String exp); Token[] tokens(String exp, Collection<String> ignoreProperties); static final String QUERY_FIELDS; static final String QUERY_FORMAT; static final String QUERY_PAGE_SIZE; static final String QUERY_TO; static final String QUERY_FROM; static final String QUERY_MINIMAL; static final String QUERY_SORT; }