use of org.eclipse.wst.xml.xpath2.processor.StaticNameResolver in project webtools.sourceediting by eclipse.
the class Engine method parseExpression.
public XPath2Expression parseExpression(String expression, StaticContext context) {
XPath xPath = new JFlexCupParser().parse(expression);
xPath.setStaticContext(context);
StaticNameResolver name_check = new StaticNameResolver(context);
name_check.check(xPath);
xPath.setAxes(name_check.getAxes());
xPath.setFreeVariables(name_check.getFreeVariables());
xPath.setResolvedFunctions(name_check.getResolvedFunctions());
xPath.setRootUsed(name_check.isRootUsed());
return xPath;
}
Aggregations