@Test public void testNoExtension() { StatementPattern sp = new StatementPattern(new Var("x"), new Var("y"), new Var("z")); Projection projection = new Projection(sp, 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);  }