@Test public void testResolveRegex() { assertThat( new ParboiledAppSpecifier(new RegexAppAstNode("htt")).resolve(), equalTo( Arrays.stream(Protocol.values()) .filter( protocol -> Pattern.compile("htt", Pattern.CASE_INSENSITIVE) .matcher(protocol.toString()) .find()) .map(Protocol::toApplication) .collect(ImmutableSet.toImmutableSet()))); }
@Override public Set<Application> resolve() { return _ast.accept(new AppAstNodeToApps()); }
ParboiledAppSpecifier implements ApplicationSpecifier { @Override public Set<Application> resolve() { return _ast.accept(new AppAstNodeToApps()); } }
ParboiledAppSpecifier implements ApplicationSpecifier { @Override public Set<Application> resolve() { return _ast.accept(new AppAstNodeToApps()); } ParboiledAppSpecifier(AppAstNode ast); }
ParboiledAppSpecifier implements ApplicationSpecifier { @Override public Set<Application> resolve() { return _ast.accept(new AppAstNodeToApps()); } ParboiledAppSpecifier(AppAstNode ast); static ParboiledAppSpecifier parse(String input); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<Application> resolve(); }
ParboiledAppSpecifier implements ApplicationSpecifier { @Override public Set<Application> resolve() { return _ast.accept(new AppAstNodeToApps()); } ParboiledAppSpecifier(AppAstNode ast); static ParboiledAppSpecifier parse(String input); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<Application> resolve();  }