@Test public void aggregates_simple_path() { ExecutableElement method = methodElements.of( SimplePathClass.class.getName(), "hello" ); assertThat(visitor.visitPath(method).get()).isEqualTo("simple-path"); }
public Optional<String> visitPath(ExecutableElement element) { String aggregatedPath = emptyToNull( aggregate( currentPath(element).orElse(""), element.getEnclosingElement() ) ); return Optional.ofNullable(aggregatedPath); }
PathVisitor { public Optional<String> visitPath(ExecutableElement element) { String aggregatedPath = emptyToNull( aggregate( currentPath(element).orElse(""), element.getEnclosingElement() ) ); return Optional.ofNullable(aggregatedPath); } }
PathVisitor { public Optional<String> visitPath(ExecutableElement element) { String aggregatedPath = emptyToNull( aggregate( currentPath(element).orElse(""), element.getEnclosingElement() ) ); return Optional.ofNullable(aggregatedPath); } PathVisitor(Types types); }
PathVisitor { public Optional<String> visitPath(ExecutableElement element) { String aggregatedPath = emptyToNull( aggregate( currentPath(element).orElse(""), element.getEnclosingElement() ) ); return Optional.ofNullable(aggregatedPath); } PathVisitor(Types types); Optional<String> visitPath(ExecutableElement element); }
PathVisitor { public Optional<String> visitPath(ExecutableElement element) { String aggregatedPath = emptyToNull( aggregate( currentPath(element).orElse(""), element.getEnclosingElement() ) ); return Optional.ofNullable(aggregatedPath); } PathVisitor(Types types); Optional<String> visitPath(ExecutableElement element);  }