blob: c9abfb7fc9eeed307e5fad5af49cd3153b75ca65 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2011 Jesper Moller, and others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* 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);
}