Package ru.aristar.jnuget.query

Examples of ru.aristar.jnuget.query.QueryLexer


    protected Collection<? extends Nupkg> execQuery(PackageSource<Nupkg> packageSource, final String filter) {
        if (filter == null || filter.isEmpty()) {
            return packageSource.getPackages();
        }
        try {
            QueryLexer queryLexer = new QueryLexer();
            Expression expression = queryLexer.parse(filter);
            if (expression.hasFilterPriority()) {
                return expression.filter(packageSource.getPackages());
            } else {
                return expression.execute(packageSource);
            }
View Full Code Here

TOP

Related Classes of ru.aristar.jnuget.query.QueryLexer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.