public Object visitBinarySentence(BinarySentence fs, Object arg) { if (fs.isAndSentence()) { return true; } else { bool first = ((bool)fs.getFirst().accept(this, null)); bool second = ((bool)fs.getSecond().accept(this, null)); return (first || second); } }