/** */ package rba.core; /** * * A representation of the model object 'If Statement'. * * * * * * *

* The following features are supported: *

* * * @see rba.core.RBACorePackage#getIfStatement() * @model * @generated */ public interface IfStatement extends Expression { /** * Returns the value of the 'Condition' containment reference. * * * * * * @return the value of the 'Condition' containment reference. * @see #setCondition(Expression) * @see rba.core.RBACorePackage#getIfStatement_Condition() * @model containment="true" required="true" * @generated */ Expression getCondition(); /** * Sets the value of the '{@link rba.core.IfStatement#getCondition Condition}' containment reference. * * * @param value the new value of the 'Condition' containment reference. * @see #getCondition() * @generated */ void setCondition(Expression value); /** * Returns the value of the 'Then Expression' containment reference. * * * * * * @return the value of the 'Then Expression' containment reference. * @see #setThenExpression(Expression) * @see rba.core.RBACorePackage#getIfStatement_ThenExpression() * @model containment="true" required="true" * @generated */ Expression getThenExpression(); /** * Sets the value of the '{@link rba.core.IfStatement#getThenExpression Then Expression}' containment reference. * * * @param value the new value of the 'Then Expression' containment reference. * @see #getThenExpression() * @generated */ void setThenExpression(Expression value); /** * Returns the value of the 'Else Expression' containment reference. * * * * * * @return the value of the 'Else Expression' containment reference. * @see #setElseExpression(Expression) * @see rba.core.RBACorePackage#getIfStatement_ElseExpression() * @model containment="true" required="true" * @generated */ Expression getElseExpression(); /** * Sets the value of the '{@link rba.core.IfStatement#getElseExpression Else Expression}' containment reference. * * * @param value the new value of the 'Else Expression' containment reference. * @see #getElseExpression() * @generated */ void setElseExpression(Expression value); /** * * * * @Override * * @model kind="operation" * annotation="http://www.eclipse.org/emf/2002/GenModel body='if (thenExpression != null) {\r\n return thenExpression.getUnderlyingType();\r\n}\r\nreturn ExpressionType.VALUE;'" * @generated */ ExpressionType getUnderlyingType(); /** * * * * @Override * * @model kind="operation" * annotation="http://www.eclipse.org/emf/2002/GenModel body='StringBuffer expressionText = new StringBuffer();\r\nexpressionText.append(\"IF(\");\r\nexpressionText.append(condition != null ? condition.getExpressionText() : \"[Invalid_Expression]\");\r\nexpressionText.append(\") THEN \");\r\nexpressionText.append(thenExpression != null ? thenExpression.getExpressionText() : \"[Invalid_Expression]\");\r\nexpressionText.append(\" ELSE \");\r\nexpressionText.append(elseExpression != null ? elseExpression.getExpressionText() : \"[Invalid_Expression]\");\r\nreturn expressionText.toString();'" * @generated */ String getExpressionText(); } // IfStatement