if (!super.equals(obj)) return false; if (getClass() != obj.getClass())
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((desc == null) ? 0 : desc.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((owner == null) ? 0 : owner.hashCode()); return result; } @Override
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; UnaryMathOpValue other = (UnaryMathOpValue) obj; if (op != other.op) return false; return true; } }
@Override public TypedValue unaryOpValue(TypedValue.UnaryOperationValue val, I in) throws E { if (remap.containsKey(val)) return remap.get(val); I param = val.visit(parameter, in); TypedValue newOperand = val.operand.visit(this, param); newOperand = newOperand.visit(rewriter, param); TypedValue newVal = val; if (newOperand != val.operand) newVal = val.withNewChildren(newOperand); newVal = newVal.visit(rewriter, in); remap.put(val, newVal); return newVal; } // @Override public TypedValue getFieldValue(TypedValue.GetFieldValue val, I in) throws TypedValueVisitorException
public UnaryOperationValue withNewChildren(TypedValue newOperand) { return new UnaryOperationValue(type, newOperand); } @Override
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((op == null) ? 0 : op.hashCode()); return result; } @Override