Package org.jrdf.query.expression

Examples of org.jrdf.query.expression.Optional


        lhsExp = (lhsExp == null) ? EMPTY_CONSTRAINT : lhsExp;
        Expression lhs = getNext(lhsExp);
        Expression rhsExp = optional.getRhs();
        rhsExp = (rhsExp == null) ? EMPTY_CONSTRAINT : rhsExp;
        Expression rhs = getNext(rhsExp);
        expression = new Optional(lhs, rhs);
        return null;
    }
View Full Code Here


    }

    @Override
    public void caseAOptionalGraphPattern(AOptionalGraphPattern node) {
        Expression rhs = getExpression((PGroupGraphPattern) node.getGroupGraphPattern().clone());
        expression = new Optional(rhs);
    }
View Full Code Here

        Expression rhs = getExpression((PGroupGraphPattern) node.getGroupGraphPattern().clone());
        expression = new Optional(rhs);
    }

    private void handleOptional(Expression lhs, Expression rhs) {
        Optional rhsOptional = (Optional) rhs;
        if (rhsOptional.getLhs() != null) {
            expression = new Conjunction(lhs, rhsOptional);
        } else {
            rhsOptional.setLhs(lhs);
            expression = rhsOptional;
        }
    }
View Full Code Here

TOP

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

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.