@Override public void visit(Relation node) { handleBinary(node.getLeft(), node.getRight()); }
@Override public void visit(Relation node) { traverseBinary(node); MvExpressions l = expressions.get(node.getLeft()); MvExpressions r = expressions.get(node.getRight()); MvExpressions result = createNewMvExpressions(); result.bladeExpressions[0] = new Relation(l.bladeExpressions[0], r.bladeExpressions[0], node.getType()); expressions.put(node, result); System.err.println("Warning: Relation is only implemented for scalars!"); }
/** * Converts this node into a human readable string. * * @return The string "<code>left relation right</code>", where left and right are the results of the toString methods of * the left and right operand and relation is the concrete relation, e.g. <. */ public String toString() { return bracketComposite(getLeft()) + type + bracketComposite(getRight()); }
@Override public void visit(Relation relation) { relation.getLeft().accept(this); relation.getRight().accept(this); }
@Override public void visit(Relation relation) { // just do nothing, because only MulitvectorComponent is important relation.getLeft().accept(this); relation.getRight().accept(this); }
@Override public Expression copy() { return new Relation(getLeft().copy(), getRight().copy(), type); }
@Override public void visit(Relation relation) { result = null; relation.getLeft().accept(this); Expression leftResult = result; relation.getRight().accept(this); Expression rightResult = result; if (leftResult != null || rightResult != null) result = new Relation(leftResult, rightResult, relation.getType()); }
@Override public void visit(Relation relation) { relation.getLeft().accept(this); Expression left = resultExpr; relation.getRight().accept(this);