Package client.net.sf.saxon.ce.expr

Examples of client.net.sf.saxon.ce.expr.Expression


     * if all the arguments are constant; functions that do not require this behavior
     * can override the preEvaluate method.
     */

    public Expression typeCheck(ExpressionVisitor visitor, ItemType contextItemType) throws XPathException {
        Expression e2 = super.typeCheck(visitor, contextItemType);
        if (e2 != this) {
            return e2;
        }
        if (argument[0] instanceof NumberFn) {
            // happens through repeated rewriting
View Full Code Here


    public StringJoin newInstance() {
        return new StringJoin();
    }

    public Expression optimize(ExpressionVisitor visitor, ItemType contextItemType) throws XPathException {
        Expression exp = super.optimize(visitor, contextItemType);
        if (exp instanceof StringJoin) {
            return ((StringJoin) exp).simplifySingleton();
        } else {
            return exp;
        }
View Full Code Here

     */

    public LocalParam getLocalParam(int id) {
        Iterator<Expression> iter = body.iterateSubExpressions();
        while (iter.hasNext()) {
            Expression child = iter.next();
            if (child instanceof LocalParam && ((LocalParam)child).getParameterId() == id) {
                return (LocalParam)child;
            }
        }
        return null;
View Full Code Here

TOP

Related Classes of client.net.sf.saxon.ce.expr.Expression

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.