return null;
}
*/
if (lastStr.equals("+")) {
return new MathOperator(MathOperator.MathOperatorValue.ADD);
} else if (lastStr.equals("-")) {
return new MathOperator(MathOperator.MathOperatorValue.SUBSTRACT);
} else if (lastStr.equals("*")) {
return new MathOperator(MathOperator.MathOperatorValue.MULTIPLY);
} else if ((lastStr.equals("/")) || (lastStr.equals(":"))) {
return new MathOperator(MathOperator.MathOperatorValue.DIVIDE);
} else if ((lastStr.equals("=")) || (lastStr.equals(":="))) {
return new MathOperator(MathOperator.MathOperatorValue.ASSIGN);
} else {
return null;
}