Package xbird.xquery.type

Examples of xbird.xquery.type.SequenceType$Empty


            return false;
        }
    }

    public static SequenceType toOptimal(final AtomicType t) {
        return new SequenceType(t, Occurrence.OCC_ZERO_OR_ONE);
    }
View Full Code Here


     * @link http://www.w3.org/TR/xquery-semantics/#jd_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 {
                return expected;
            }
        } else {
View Full Code Here

TOP

Related Classes of xbird.xquery.type.SequenceType$Empty

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.