/** * Determine whether the pattern matches a given item. * * @param item the item to be tested * @return true if the pattern matches, else false */ public boolean matches(Item<?> item, XPathContext context) throws XPathException { return item instanceof NodeInfo && matchesBeneathAnchor((NodeInfo) item, null, context); }
/** * Determine whether the pattern matches a given item. * * @param item the item to be tested * @return true if the pattern matches, else false */ public boolean matches(Item<?> item, XPathContext context) throws XPathException { return item instanceof NodeInfo && matchesBeneathAnchor((NodeInfo) item, null, context); }