@Test public void resolve_by_range_absent_b_e() { final IdentifierNameResolver resolver = new IdentifierNameResolver(IDENTIFIER, Optional.of(new SubSelectRange(Optional.empty(), Optional.of(1)))); assertEquals(SimpleGroupPath.valueOf("foo"), resolver.apply(ctx).map(p -> SimpleGroupPath.valueOf(p.getPath())).get()); }
@Override public Optional<Path> apply(Context<?> ctx) { return ctx.getAliasFromIdentifier(Path.class, identifier_) .map(path -> sub_select_.map(s -> s.apply(path)).orElseGet(() -> SimpleGroupPath.valueOf(path.getPath()))); }
IdentifierNameResolver implements NameResolver { @Override public Optional<Path> apply(Context<?> ctx) { return ctx.getAliasFromIdentifier(Path.class, identifier_) .map(path -> sub_select_.map(s -> s.apply(path)).orElseGet(() -> SimpleGroupPath.valueOf(path.getPath()))); } }
IdentifierNameResolver implements NameResolver { @Override public Optional<Path> apply(Context<?> ctx) { return ctx.getAliasFromIdentifier(Path.class, identifier_) .map(path -> sub_select_.map(s -> s.apply(path)).orElseGet(() -> SimpleGroupPath.valueOf(path.getPath()))); } IdentifierNameResolver(String identifier, Optional<SubSelect> sub_select);  IdentifierNameResolver(String identifier); }
IdentifierNameResolver implements NameResolver { @Override public Optional<Path> apply(Context<?> ctx) { return ctx.getAliasFromIdentifier(Path.class, identifier_) .map(path -> sub_select_.map(s -> s.apply(path)).orElseGet(() -> SimpleGroupPath.valueOf(path.getPath()))); } IdentifierNameResolver(String identifier, Optional<SubSelect> sub_select);  IdentifierNameResolver(String identifier); @Override Optional<Path> apply(Context<?> ctx); @Override StringBuilder configString(); @Override List<PathMatcher.IdentifierMatch> asLiteral(); @Override int hashCode(); @Override boolean equals(Object obj); }
IdentifierNameResolver implements NameResolver { @Override public Optional<Path> apply(Context<?> ctx) { return ctx.getAliasFromIdentifier(Path.class, identifier_) .map(path -> sub_select_.map(s -> s.apply(path)).orElseGet(() -> SimpleGroupPath.valueOf(path.getPath()))); } IdentifierNameResolver(String identifier, Optional<SubSelect> sub_select);  IdentifierNameResolver(String identifier); @Override Optional<Path> apply(Context<?> ctx); @Override StringBuilder configString(); @Override List<PathMatcher.IdentifierMatch> asLiteral(); @Override int hashCode(); @Override boolean equals(Object obj);  }