Search in sources :

Example 1 with PlusExpr

use of org.eclipse.wst.xml.xpath2.processor.internal.ast.PlusExpr in project webtools.sourceediting by eclipse.

the class DefaultEvaluator method visit.

/**
 * visit plus expression
 *
 * @param e
 *            is the plus expression.
 * @return a new function
 */
public Object visit(PlusExpr e) {
    ResultSequence rs = (ResultSequence) e.arg().accept(this);
    Collection args = new ArrayList();
    args.add(rs);
    try {
        return FsPlus.fs_plus_unary(args);
    } catch (DynamicError err) {
        report_error(err);
        // unreach
        return null;
    }
}
Also used : ResultSequence(org.eclipse.wst.xml.xpath2.api.ResultSequence) ArrayList(java.util.ArrayList) Collection(java.util.Collection)

Aggregations

ArrayList (java.util.ArrayList)1 Collection (java.util.Collection)1 ResultSequence (org.eclipse.wst.xml.xpath2.api.ResultSequence)1