Package xbird.xquery.dm.value.literal

Examples of xbird.xquery.dm.value.literal.XDecimal


                value = new XInteger(currentToken.image);
                break;
            case DecimalLiteral:
                // DecimalLiteral
                currentToken = jj_consume_token(DecimalLiteral);
                value = new XDecimal(currentToken.image);
                break;
            case DoubleLiteral:
                currentToken = jj_consume_token(DoubleLiteral);
                value = new XDouble(currentToken.image);
                break;
View Full Code Here


        if(literal.indexOf('E') != -1 || literal.indexOf('e') != -1) {
            throw new DynamicError("err:FORG0001", "Illegal representation as xs:decimal: "
                    + literal);
        }
        try {
            return new XDecimal(literal, this);
        } catch (NumberFormatException nfe) {
            throw new DynamicError("err:FORG0001", "failed to cast as '" + SYMBOL + "': " + literal);
        }
    }
View Full Code Here

                value = new XInteger(currentToken.image);
                break;
            case DecimalLiteral:
                // DecimalLiteral
                currentToken = jj_consume_token(DecimalLiteral);
                value = new XDecimal(currentToken.image);
                break;
            case DoubleLiteral:
                currentToken = jj_consume_token(DoubleLiteral);
                value = new XDouble(currentToken.image);
                break;
View Full Code Here

TOP

Related Classes of xbird.xquery.dm.value.literal.XDecimal

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.