/** */ package rba.core; /** * * A representation of the model object 'Variable'. * * * * * * * * @see rba.core.RBACorePackage#getVariable() * @model * @generated */ public interface Variable extends RuleObject { /** * * * * @Override * * @model kind="operation" * annotation="http://www.eclipse.org/emf/2002/GenModel body='<%org.eclipse.emf.ecore.EObject%> container = eContainer();\r\nif(container instanceof <%rba.core.LambdaExpression%>) {\r\n container = container.eContainer();\r\n if(container instanceof <%rba.core.LambdaContext%>) {\r\n <%java.util.List%><Expression> operands = ((LambdaContext) container).getOperand();\r\n if (operands.size() > 0) {\r\n switch (operands.get(0).getUnderlyingType()) {\r\n case AREA:\r\n case SET_OF_AREA:\r\n return ExpressionType.AREA;\r\n case CONTENT:\r\n case SET_OF_CONTENT:\r\n return ExpressionType.CONTENT;\r\n case SOUND:\r\n case SET_OF_SOUND:\r\n return ExpressionType.SOUND;\r\n case ZONE:\r\n case SET_OF_ZONE:\r\n return ExpressionType.ZONE;\r\n case SCENE:\r\n return ExpressionType.SCENE;\r\n case PROPERTY:\r\n return ExpressionType.PROPERTY;\r\n case BOOLEAN:\r\n return ExpressionType.BOOLEAN;\r\n case LAMBDA:\r\n return ExpressionType.LAMBDA;\r\n case VALUE:\r\n default:\r\n return ExpressionType.VALUE;\r\n }\r\n }\r\n }\r\n} else if (container instanceof <%rba.core.LetStatement%>) {\r\n <%rba.core.Expression%> body = ((LetStatement) container).getBody();\r\n if (body != null) {\r\n return body.getUnderlyingType();\r\n }\r\n}\r\nreturn ExpressionType.VALUE;'" * @generated */ ExpressionType getExpressionType(); } // Variable