Package org.jrdf.query.expression

Examples of org.jrdf.query.expression.Filter


            Expression llhs = ((Filter) lhs).getLhs();
            Expression lrhs = ((Filter) rhs).getLhs();
            tmpExpression = new Conjunction(llhs, lrhs);
            LogicExpression andExp = new LogicAndExpression(((Filter) lhs).getRhs(),
                ((Filter) rhs).getRhs());
            tmpExpression = new Filter(tmpExpression, andExp);
        } else if (lhs instanceof Filter) {
            tmpExpression = constructConjFilter((Filter) lhs, rhs);
        } else if (rhs instanceof Filter) {
            tmpExpression = constructConjFilter((Filter) rhs, lhs);
        }
View Full Code Here


    private Expression constructConjFilter(Filter lhs, Expression rhs) {
        Expression result;
        Expression llhs = lhs.getLhs();
        result = new Conjunction(llhs, rhs);
        result = new Filter(result, lhs.getRhs());
        return result;
    }
View Full Code Here

    public Void visitFilter(Filter filter) {
        LogicExpression logicExpression = (LogicExpression) getNext(filter.getRhs());
        expression = getNext(filter.getLhs());
        if (logicExpression != null) {
            expression = new Filter(expression, logicExpression);
        }
        return null;
    }
View Full Code Here

                }
            } else if (Constraint.class.isAssignableFrom(rhs.getClass()) &&
                (Constraint.class.isAssignableFrom(lhs.getClass()))) {
                expression = new Conjunction(lhs, rhs);
            } else if (LogicExpression.class.isAssignableFrom(rhs.getClass())) {
                expression = new Filter(lhs, (LogicExpression) rhs);
            } else if (LogicExpression.class.isAssignableFrom(lhs.getClass())) {
                expression = new Filter(rhs, (LogicExpression) lhs);
            } else {
                expression = new Conjunction(lhs, rhs);
            }
        } else {
            expression = rhs;
View Full Code Here

TOP

Related Classes of org.jrdf.query.expression.Filter

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.