blob: 05375515419c2664b3505d8f07ad44fbc1f97d2f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 Jesper Moller, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Jesper Moller - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.xml.xpath2.api;
/**
* Main API for the XPath2 processor.
*
* @noimplement This interface is not intended to be implemented by clients.
* @since 2.0
*/
public interface XPath2Engine {
/**
* Parse a full XPath2 expression and type check it against the static context
* (if it provides a type model to check against)
*
* @param expression String representation of XPath2 expression
* @param context Static context for the expression.
* @return A compiled expression.
*/
XPath2Expression parseExpression(String expression, StaticContext context);
}