class AM_GLOBAL_EXPR < $AM_EXPR
****
Global variable expression.


Ancestors
$AM_EXPR $HASH $IS_EQ $AM
$PROG_ERR AM_EXPR AM



Public


Readable Attributes
attr as_type : AS_TYPE_SPEC;
attr class_tp:$TP;
**** The class this came from. any. This must consist of only the expression components which are legal for constant initializers.
attr init:$AM_EXPR;
**** The initialization expression, if any. This must consist of only the expression components which are legal for constant initializers.
attr is_const:BOOL;
**** True if this is a constant.
attr name:IDENT;
**** The Sather name, if any. any. This must consist of only the expression components which are legal for constant initializers.
attr source:SFILE_ID;
**** Information identifying the origin of a node in Sather source. It encodes the file and the character offset of the originating construct.
attr tp_at:$TP;
**** The declared type of the global. any. This must consist of only the expression components which are legal for constant initializers.

Writable Attributes
attr as_type : AS_TYPE_SPEC;
attr class_tp:$TP;
**** The class this came from. any. This must consist of only the expression components which are legal for constant initializers.
attr init:$AM_EXPR;
**** The initialization expression, if any. This must consist of only the expression components which are legal for constant initializers.
attr is_const:BOOL;
**** True if this is a constant.
attr name:IDENT;
**** The Sather name, if any. any. This must consist of only the expression components which are legal for constant initializers.
attr source:SFILE_ID;
**** Information identifying the origin of a node in Sather source. It encodes the file and the character offset of the originating construct.
attr tp_at:$TP;
**** The declared type of the global. any. This must consist of only the expression components which are legal for constant initializers.

Features
copy:$AM_EXPR
create(source:SFILE_ID):SAME
**** A new object for the location `source' with default initialization.
hash:INT
is_eq(a:$OB):BOOL
is_neq(a:$OB):BOOL
tp:$TP