@Test public void shouldReturnNothingForPackage() throws Exception { PackageElement pkg = compilation.getElements() .getPackageElement(Outer.class.getPackage().getName()); assertThat(stream(pkg).count(), is(0L)); }
public static Stream<Element> stream(Element element) { return StreamSupport.stream(new ElementParentsIterable(element).spliterator(), false); }
ElementParentsIterable implements Iterable<Element> { public static Stream<Element> stream(Element element) { return StreamSupport.stream(new ElementParentsIterable(element).spliterator(), false); } }
ElementParentsIterable implements Iterable<Element> { public static Stream<Element> stream(Element element) { return StreamSupport.stream(new ElementParentsIterable(element).spliterator(), false); } ElementParentsIterable(Element start); }
ElementParentsIterable implements Iterable<Element> { public static Stream<Element> stream(Element element) { return StreamSupport.stream(new ElementParentsIterable(element).spliterator(), false); } ElementParentsIterable(Element start); @Override Iterator<Element> iterator(); static Stream<Element> stream(Element element); }
ElementParentsIterable implements Iterable<Element> { public static Stream<Element> stream(Element element) { return StreamSupport.stream(new ElementParentsIterable(element).spliterator(), false); } ElementParentsIterable(Element start); @Override Iterator<Element> iterator(); static Stream<Element> stream(Element element);  }