/** * Check the element is an example or not. * * @param elt the elt to check * @return true when the checked element is an example */ boolean isExample(Element elt) { return elt.getAnnotation(Source.class) != null || elt.getEnclosingElement() != null && isExample(elt.getEnclosingElement()); }
if (helper.isExample(elt)) { String source = helper.readSource(elt); switch (elt.getKind()) {