Examples of ExprString


Examples of org.boris.expr.ExprString

            break;
        case Integer:
            value = new ExprInteger(e.integerValue);
            break;
        case String:
            value = new ExprString(e.val);
            break;
        case Variable:
            value = new ExprVariable(callback, e.val);
            if (visitor != null)
                visitor.annotateVariable((ExprVariable) value);
View Full Code Here

Examples of org.boris.expr.ExprString

    public void addFunctions(IFunctionProvider provider) {
        evaluator.add(provider);
    }

    public void setValue(String name, String value) {
        setValue(name, new ExprString(value));
    }
View Full Code Here

Examples of org.boris.expr.ExprString

            result = new ExprInteger(Integer.parseInt(expression));
        } catch (Exception e) {
            try {
                result = new ExprDouble(Double.parseDouble(expression));
            } catch (Exception ex) {
                result = new ExprString(expression);
            }
        }
        return result;
    }
View Full Code Here

Examples of org.boris.expr.ExprString

        if (o instanceof Boolean)
            return new ExprBoolean(((Boolean) o).booleanValue());

        if (o instanceof String)
            return new ExprString((String) o);

        if (o instanceof Expr)
            return (Expr) o;

        return null;
View Full Code Here

Examples of org.boris.expr.ExprString

                sb.append(((ExprString) a).str);
            } else if (a instanceof ExprNumber) {
                sb.append(a.toString());
            }
        }
        return new ExprString(sb.toString());
    }
View Full Code Here

Examples of org.boris.expr.ExprString

        return null;
    }

    private Expr getRHS(String text, int offset, boolean str) {
        if (str) {
            return new ExprString(text.substring(offset));
        } else {
            try {
                return new ExprDouble(Double
                        .parseDouble(text.substring(offset)));
            } catch (NumberFormatException e) {
View Full Code Here

Examples of org.boris.expr.ExprString

        if (args.length == 2) {
            r = asInteger(args[1], true);
        }
        if (r > str.length())
            r = str.length();
        return new ExprString(str.substring(0, r));
    }
View Full Code Here

Examples of org.boris.expr.ExprString

            char c = str.charAt(i);
            if (c != 7) {
                sb.append(c);
            }
        }
        return new ExprString(sb.toString());
    }
View Full Code Here

Examples of org.boris.expr.ExprString

            start = stlen + 1;
        if (start + len > stlen)
            len = stlen - start + 1;
        if (len < 0)
            len = 0;
        return new ExprString(str.substring(start - 1, start + len - 1));
    }
View Full Code Here

Examples of org.boris.expr.ExprString

            } else {
                sb.append(col);
            }
        }

        return new ExprString(sb.toString());
    }
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.