XCSG:Variable
From AtlasWiki
Revision as of 15:17, 5 March 2014 by Xingyan (Talk | contribs) (Created page with "The term variable is used by many authors to refer to any assignable entity. Unfortunately the same term is used by others to refer only to local variables. In XCIL, we use ...")
The term variable is used by many authors to refer to any assignable entity. Unfortunately the same term is used by others to refer only to local variables. In XCIL, we use the terms Variable (for any assignable entity) and LocalVariable (for a variable defined by a method body).
The semantics of Variable are those common to all its subtypes, i.e. Attribute, AssociationEnd, ArrayElement, Parameter, and LocalVariable.
The meaning of volatile is that common to C++ and Java.
Specifications
Metaclass | Variable |
---|---|
Extends | AddressableEntity |
Description | An assignable entity that represents a portion of the system’s state, i.e. an attribute, an array element, an out or inout parameter, or a local variable |
Tag | volatile |
---|---|
Description | May the variable’s value be changed externally, e.g., by hardware? |
Language mappings
Individual language mappings are provided for each subtype of Variable (Attribute, AssociationEnd, ArrayElement, Parameter, and LocalVariable).