Examples of validateTypes()


Examples of org.apache.expreval.expr.node.GenericValue.validateTypes()

    public Class<? extends GenericValue> validateTypes(final GenericValue parentExpr,
                                                       final boolean allowCollections) throws HBqlException {

        final GenericValue genericValue = this.getExprArg(0);
        final Class<? extends GenericValue> validatedValue = genericValue.validateTypes(this, false);
        final Class<? extends GenericValue> type = this.getGenericValueClass(validatedValue);

        final GenericNullCompare typedExpr;
        if (TypeSupport.isParentClass(StringValue.class, type))
            typedExpr = new StringNullCompare(this.isNot(), this.getExprArg(0));
View Full Code Here

Examples of org.apache.expreval.expr.node.GenericValue.validateTypes()

    public static Object parseExpression(final String sql) throws HBqlException {
        try {
            final HBqlParser parser = ParserUtil.newHBqlParser(sql);
            final GenericValue valueExpr = parser.exprValue();
            valueExpr.validateTypes(null, false);
            return valueExpr.getValue(null, null);
        }
        catch (ResultMissingColumnException e) {
            // No column refs should be missing
            throw new InternalErrorException("Missing column: " + e.getMessage());
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.