Examples of canEvalNumeric()


Examples of org.foray.fotree.value.PropertyValue.canEvalNumeric()

                return prop;
            }
            /* If what is parsed so far is not numeric, it cannot be a part of
             * an additive expression. Therefore, as far as this parser is
             * concerned, the expression is an error. */
            if (! prop.canEvalNumeric()) {
                return null;
            }
        }
    }

View Full Code Here

Examples of org.foray.fotree.value.PropertyValue.canEvalNumeric()

            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv.canEvalNumeric()) {
            return pv;
        }
        throw unexpectedValue(value, fobj);
    }
View Full Code Here

Examples of org.foray.fotree.value.PropertyValue.canEvalNumeric()

            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv.canEvalNumeric()) {
            return pv;
        }
        throw unexpectedValue(value, fobj);
    }
View Full Code Here

Examples of org.foray.fotree.value.PropertyValue.canEvalNumeric()

            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv.canEvalNumeric()) {
            return pv;
        }
        throw unexpectedValue(value, fobj);
    }
View Full Code Here

Examples of org.foray.fotree.value.PropertyValue.canEvalNumeric()

            return pv;
        }
        if (pv.canEvalPercentage()) {
            return pv;
        }
        if (pv.canEvalNumeric()) {
            final double number = pv.evalNumeric();
            if (pv.getUnitPower() == Expr.UNIT_POWER_NUMERIC
                    && number >= 0
                    && number <= WKConstants.PERCENT_CONVERSION) {
                return pv;
View Full Code Here

Examples of org.foray.fotree.value.PropertyValue.canEvalNumeric()

     * @throws PropertyException For an invalid property value.
     */
    private PropertyValue createPropertyValue(final FObj fobj,
            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalNumeric()) {
            return pv;
        }
        throw unexpectedValue(value, fobj);
    }

View Full Code Here

Examples of org.foray.fotree.value.PropertyValue.canEvalNumeric()

            if (pv.evalPercentage() < 0) {
                throw unexpectedValue(value, fobj);
            }
            return pv;
        }
        if (pv.canEvalNumeric()) {
            /* This test includes both expressions that can and cannot evaluate
             * to a length, because <number> is one of the input values. */
            if (pv.evalNumeric() >= 0) {
                return pv;
            }
View Full Code Here

Examples of org.foray.fotree.value.PropertyValue.canEvalNumeric()

            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv.canEvalNumeric()) {
            if (pv.getUnitPower() == Expr.UNIT_POWER_NUMERIC) {
                return pv;
            }
        }
        throw unexpectedValue(value, fobj);
View Full Code Here

Examples of org.foray.fotree.value.PropertyValue.canEvalNumeric()

     * @throws PropertyException For an invalid property value.
     */
    private PropertyValue createPropertyValue(final FObj fobj,
            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalNumeric()) {
            return pv;
        }
        throw unexpectedValue(value, fobj);
    }

View Full Code Here

Examples of org.foray.fotree.value.PropertyValue.canEvalNumeric()

            final String value) throws PropertyException {
        final PropertyValue pv = standardParse(fobj, value);
        if (pv.canEvalKeyword()) {
            return pv;
        }
        if (pv.canEvalNumeric()) {
            return pv;
        }
        throw unexpectedValue(value, fobj);
    }
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.