@Test public void testGenericSP() { Extension extension = new Extension(new SingletonSet(), new ExtensionElem(new Var("z"), "z")); Projection projection = new Projection(extension, new ProjectionElemList( new ProjectionElem("x", "subject"), new ProjectionElem("y", "predicate"), new ProjectionElem("z", "object"))); ConstructConsequentVisitor visitor = new ConstructConsequentVisitor(); projection.visit(visitor); Set<StatementPattern> expected = Sets.newHashSet( new StatementPattern(s(null), p(null), o(null))); Assert.assertEquals(expected, visitor.getConsequents()); }
public Set<StatementPattern> getConsequents() { return consequentStatementPatterns; }
ConstructConsequentVisitor extends AbstractQueryModelVisitor<RuntimeException> { public Set<StatementPattern> getConsequents() { return consequentStatementPatterns; } }
ConstructConsequentVisitor extends AbstractQueryModelVisitor<RuntimeException> { public Set<StatementPattern> getConsequents() { return consequentStatementPatterns; }  }
ConstructConsequentVisitor extends AbstractQueryModelVisitor<RuntimeException> { public Set<StatementPattern> getConsequents() { return consequentStatementPatterns; }  Set<StatementPattern> getConsequents(); Set<StatementPattern> getBnodes(); @Override void meet(Projection projection); @Override void meet(MultiProjection projection); }
ConstructConsequentVisitor extends AbstractQueryModelVisitor<RuntimeException> { public Set<StatementPattern> getConsequents() { return consequentStatementPatterns; }  Set<StatementPattern> getConsequents(); Set<StatementPattern> getBnodes(); @Override void meet(Projection projection); @Override void meet(MultiProjection projection);  }