Update AbstractExpression.java

delete duplicated functions