Examples of quantifier()


Examples of xbird.xquery.type.SequenceType.quantifier()

     */
    public static Type quantify(final Type expected, final Type actual) {
        if(expected instanceof AtomicType) {
            if(actual instanceof SequenceType) {
                SequenceType seq = (SequenceType) actual;
                if(seq.quantifier() == Occurrence.OCC_EXACTLY_ONE) {
                    return expected;
                } else {
                    return new SequenceType((AtomicType) expected, seq.quantifier());
                }
            } else {
View Full Code Here

Examples of xbird.xquery.type.SequenceType.quantifier()

            if(actual instanceof SequenceType) {
                SequenceType seq = (SequenceType) actual;
                if(seq.quantifier() == Occurrence.OCC_EXACTLY_ONE) {
                    return expected;
                } else {
                    return new SequenceType((AtomicType) expected, seq.quantifier());
                }
            } else {
                return expected;
            }
        } else {
View Full Code Here

Examples of xbird.xquery.type.Type.quantifier()

                final DirectFunctionCall funcall = (DirectFunctionCall) retExpr;
                final List<XQExpression> params = funcall.getParams();
                if(params.size() == 1) {
                    FunctionSignature sig = funcall.getFunction().getFunctionSignature(1);
                    Type type = sig.getArgumentType(0);
                    Occurrence occ = type.quantifier();
                    if(!occ.accepts(Occurrence.OCC_ZERO_OR_MORE.getAlignment())) {
                        return flwr; //TODO REVIEWME
                    }
                    final XQExpression firstArg = params.get(0);
                    final XQExpression cutted = recApplyFLWRCuttingInternal(flwr, firstArg);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.