/** * Checks if the filter includes the given node, i.e. do the properties of the node's source * section meet the conditions set by the filter. * * @param node The node to check. * @return True of the filter includes the node, false otherwise. * @since 1.0.0. */ public boolean includes(Node node) { if (!InstrumentationHandler.isInstrumentableNode(node, node.getSourceSection())) { return false; } Set<Class<?>> tags = getProvidedTags(node); for (EventFilterExpression exp : expressions) { if (!exp.isIncluded(tags, node, node.getSourceSection())) { return false; } } return true; }