/** * Test whether a given item conforms to this type * * @param item The item to be tested * @param th the type hierarchy cache * @return true if the item is an instance of this type; false otherwise */ @Override public boolean matches(Item item, TypeHierarchy th) throws XPathException { return item instanceof Function && checkAnnotationAssertions(assertions, (Function) item, th.getConfiguration()); }
/** * Test whether a given item conforms to this type * * @param item The item to be tested * @param th the type hierarchy cache * @return true if the item is an instance of this type; false otherwise */ @Override public boolean matches(Item item, TypeHierarchy th) throws XPathException { return item instanceof Function && checkAnnotationAssertions(assertions, (Function) item, th.getConfiguration()); }