Search in sources :

Example 1 with MinusExpr

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

the class DefaultEvaluator method visit.

/**
 * visit minus expression
 *
 * @param e
 *            is the minus expression.
 * @return a new function
 */
public Object visit(MinusExpr e) {
    ResultSequence rs = (ResultSequence) e.arg().accept(this);
    Collection args = new ArrayList();
    args.add(rs);
    try {
        return FsMinus.fs_minus_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