@Test public void testResolveUnion() { assertThat( new ParboiledNameSetSpecifier( new UnionNameSetAstNode( new SingletonNameSetAstNode("mlag1"), new SingletonNameSetAstNode("mlag2")), Grammar.MLAG_ID_SPECIFIER) .resolve(_ctxt), equalTo(ImmutableSet.of("mlag1", "mlag2"))); }
@Override public Set<String> resolve(SpecifierContext ctxt) { return _ast.accept(new NameAstNodeToNames(Grammar.getNames(ctxt, _grammar))); }
ParboiledNameSetSpecifier implements NameSetSpecifier { @Override public Set<String> resolve(SpecifierContext ctxt) { return _ast.accept(new NameAstNodeToNames(Grammar.getNames(ctxt, _grammar))); } }
ParboiledNameSetSpecifier implements NameSetSpecifier { @Override public Set<String> resolve(SpecifierContext ctxt) { return _ast.accept(new NameAstNodeToNames(Grammar.getNames(ctxt, _grammar))); } ParboiledNameSetSpecifier(NameSetAstNode ast, Grammar grammar); }
ParboiledNameSetSpecifier implements NameSetSpecifier { @Override public Set<String> resolve(SpecifierContext ctxt) { return _ast.accept(new NameAstNodeToNames(Grammar.getNames(ctxt, _grammar))); } ParboiledNameSetSpecifier(NameSetAstNode ast, Grammar grammar); static ParboiledNameSetSpecifier parse(String input, Grammar grammar); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<String> resolve(SpecifierContext ctxt); }
ParboiledNameSetSpecifier implements NameSetSpecifier { @Override public Set<String> resolve(SpecifierContext ctxt) { return _ast.accept(new NameAstNodeToNames(Grammar.getNames(ctxt, _grammar))); } ParboiledNameSetSpecifier(NameSetAstNode ast, Grammar grammar); static ParboiledNameSetSpecifier parse(String input, Grammar grammar); @Override boolean equals(Object o); @Override int hashCode(); @Override Set<String> resolve(SpecifierContext ctxt);  }