use of org.eclipse.wst.xml.xpath2.processor.XPathParser in project webtools.sourceediting by eclipse.
the class XPath20Helper method compile.
public static void compile(String xpathExp) throws XPathExpressionException {
try {
XPathParser xpathParser = new JFlexCupParser();
xpathParser.parse(xpathExp);
} catch (XPathParserException ex) {
throw new XPathExpressionException(ex.getMessage());
}
}
use of org.eclipse.wst.xml.xpath2.processor.XPathParser in project webtools.sourceediting by eclipse.
the class AbstractPsychoPathWTPTest method compileXPath.
protected XPath compileXPath(DynamicContext dc, String xpath) throws XPathParserException, StaticError {
XPathParser xpp = new JFlexCupParser();
XPath path = xpp.parse(xpath);
StaticChecker name_check = new StaticNameResolver(dc);
name_check.check(path);
return path;
}
use of org.eclipse.wst.xml.xpath2.processor.XPathParser in project webtools.sourceediting by eclipse.
the class AbstractPsychoPathWTPTest method compileXPath.
protected XPath compileXPath(DynamicContext dc, String xpath, boolean isRootlessAccess) throws XPathParserException, StaticError {
XPathParser xpp = new JFlexCupParser();
XPath path = null;
if (isRootlessAccess) {
path = xpp.parse(xpath, isRootlessAccess);
} else {
path = xpp.parse(xpath);
}
StaticChecker name_check = new StaticNameResolver(dc);
name_check.check(path);
return path;
}
use of org.eclipse.wst.xml.xpath2.processor.XPathParser in project webtools.sourceediting by eclipse.
the class AbstractPsychoPathTest method compileXPath.
protected XPath compileXPath(String xpath, boolean isRootlessAccess) throws XPathParserException, StaticError {
XPathParser xpp = new JFlexCupParser();
XPath path = null;
if (isRootlessAccess) {
path = xpp.parse(xpath, isRootlessAccess);
} else {
path = xpp.parse(xpath);
}
StaticChecker name_check = new StaticNameResolver(dynamicContext);
name_check.check(path);
return path;
}
use of org.eclipse.wst.xml.xpath2.processor.XPathParser in project webtools.sourceediting by eclipse.
the class AbstractPsychoPathTest method compileXPath.
protected XPath compileXPath(String xpath) throws XPathParserException, StaticError {
if (useNewApi) {
newXPath = new Engine().parseExpression(xpath, staticContextBuilder);
return null;
} else {
XPathParser xpp = new JFlexCupParser();
XPath path = oldXPath = xpp.parse(xpath);
StaticChecker name_check = new StaticNameResolver(dynamicContext);
name_check.check(path);
return path;
}
}
Aggregations