Search in sources :

Example 1 with CntxItemExpr

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

the class DefaultEvaluator method visit.

/**
 * visit context item expression.
 *
 * @param e
 *            is the context item expression.
 * @return a result sequence
 */
public Object visit(CntxItemExpr e) {
    ResultBuffer rs = new ResultBuffer();
    AnyType contextItem = focus().context_item();
    if (contextItem == null) {
        report_error(DynamicError.contextUndefined());
    }
    rs.add(contextItem);
    return rs.getSequence();
}
Also used : ResultBuffer(org.eclipse.wst.xml.xpath2.api.ResultBuffer) AnyType(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType)

Aggregations

ResultBuffer (org.eclipse.wst.xml.xpath2.api.ResultBuffer)1 AnyType (org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType)1