@Test public void testResolveName() { assertThat( new ParboiledNameSetSpecifier( new SingletonNameSetAstNode("mlag1"), Grammar.MLAG_ID_SPECIFIER) .resolve(_ctxt), equalTo(ImmutableSet.of("mlag1"))); assertThat( new ParboiledNameSetSpecifier( new SingletonNameSetAstNode("nono"), Grammar.MLAG_ID_SPECIFIER) .resolve(_ctxt), equalTo(ImmutableSet.of())); }
@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);  }