/** * @inheritDoc */ @Override public void meet(MathExpr theOp) throws Exception { mBuffer.append("("); theOp.getLeftArg().visit(this); mBuffer.append(" ").append(theOp.getOperator().getSymbol()).append(" "); theOp.getRightArg().visit(this); mBuffer.append(")"); }
@Override public String getSignature() { return super.getSignature() + " (" + operator.getSymbol() + ")"; }
/** * @inheritDoc */ @Override public void meet(MathExpr theOp) throws Exception { mBuffer.append("("); theOp.getLeftArg().visit(this); mBuffer.append(" ").append(theOp.getOperator().getSymbol()).append(" "); theOp.getRightArg().visit(this); mBuffer.append(")"); }
@Override public String getSignature() { return super.getSignature() + " (" + operator.getSymbol() + ")"; }
/** * @inheritDoc */ @Override public void meet(MathExpr theOp) throws Exception { mBuffer.append("("); theOp.getLeftArg().visit(this); mBuffer.append(" ").append(theOp.getOperator().getSymbol()).append(" "); theOp.getRightArg().visit(this); mBuffer.append(")"); }
/** * @inheritDoc */ @Override public void meet(MathExpr theOp) throws Exception { mBuffer.append("("); theOp.getLeftArg().visit(this); mBuffer.append(" ").append(theOp.getOperator().getSymbol()).append(" "); theOp.getRightArg().visit(this); mBuffer.append(")"); }
@Override public int hashCode() { return super.hashCode() ^ operator.hashCode(); }
/** * @inheritDoc */ @Override public void meet(MathExpr theOp) throws Exception { mBuffer.append("("); theOp.getLeftArg().visit(this); mBuffer.append(" ").append(theOp.getOperator().getSymbol()).append(" "); theOp.getRightArg().visit(this); mBuffer.append(")"); }
@Override public int hashCode() { return super.hashCode() ^ operator.hashCode(); }
@Override public boolean equals(Object other) { if (other instanceof MathExpr && super.equals(other)) { MathExpr o = (MathExpr)other; return operator.equals(o.getOperator()); } return false; }
/** * @inheritDoc */ @Override public void meet(MathExpr theOp) throws Exception { mBuffer.append("("); theOp.getLeftArg().visit(this); mBuffer.append(" ").append(theOp.getOperator().getSymbol()).append(" "); theOp.getRightArg().visit(this); mBuffer.append(")"); }
@Override public boolean equals(Object other) { if (other instanceof MathExpr && super.equals(other)) { MathExpr o = (MathExpr)other; return operator.equals(o.getOperator()); } return false; }