Package org.boris.expr

Examples of org.boris.expr.ExprInteger


            Range r = (Range) v.getAnnotation();
            if (r == null) {
                r = Range.valueOf(v.getName());
            }
            if (r != null && r.getDimension1() != null) {
                return new ExprInteger(r.getDimension1().getColumn());
            }

            return ExprError.NAME;
        }
View Full Code Here


        int i = s.indexOf(f, pos);
        if (i == -1)
            return ExprError.VALUE;

        return new ExprInteger(i + 1);
    }
View Full Code Here

        } else if (a instanceof ExprNumber) {
            s = a.toString();
        }

        if (s != null && s.length() > 0)
            return new ExprInteger(s.charAt(0));

        return ExprError.VALUE;
    }
View Full Code Here

        int i = s.indexOf(f, pos);
        if (i == -1)
            return ExprError.VALUE;

        return new ExprInteger(i + 1);
    }
View Full Code Here

            a = ((ExprEvaluatable) a).evaluate();
        }
        if (a instanceof ExprInteger) {
            return a;
        } else if (a instanceof ExprBoolean) {
            return new ExprInteger(((ExprNumber) a).intValue());
        } else if (a instanceof ExprDouble) {
            return new ExprInteger((int) Math.floor(((ExprDouble) a)
                    .doubleValue()));
        }

        return ExprError.VALUE;
    }
View Full Code Here

TOP

Related Classes of org.boris.expr.ExprInteger

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.