/** * Gets the left or first expression. * * @deprecated use {@link #getExpression1()}. */ public final Expression getLeftValue() { return (Expression)getExpression1(); }
/** * Gets the left or first expression. * * @deprecated use {@link #getExpression1()}. */ public final Expression getLeftValue() { return (Expression)getExpression1(); }
parameterList.add(mathExpression.getExpression1()); parameterList.add(mathExpression.getExpression2());
/** * Sets the math expression. * * @param expression the new math expression */ private void setMathExpression(Expression expression) { MathExpressionImpl mathsExpression = (MathExpressionImpl) expression; String expressionText = Localisation.getString(ExpressionPanelv2.class, "ExpressionPanelv2.expression"); ExpressionNode childNode1 = new ExpressionNode(); childNode1.setType(Number.class); childNode1.setName(expressionText + " 1"); childNode1.setExpression(mathsExpression.getExpression1()); this.insert(childNode1, this.getChildCount()); ExpressionNode childNode2 = new ExpressionNode(); childNode2.setType(Number.class); childNode2.setName(expressionText + " 2"); childNode2.setExpression(mathsExpression.getExpression2()); this.insert(childNode2, this.getChildCount()); }