Factory method to create attribute reference nodes
- Parameters:
- expr - The expression part of the reference (i.e., in
case of expr.attr). This parameter is NULL if the reference
is absolute (i.e., .attr) or simple (i.e., attr).
attrName - The name of the reference. This string is
duplicated internally.
absolute - True if the reference is an absolute reference
(i.e., in case of .attr). This parameter cannot be true if
expr is not NULL
void GetComponents( ExprTree *&expr, string &attr, bool &abs )
Deconstructor to get the components of an attribute reference
- Parameters:
- expr - The expression part of the reference (NULL for
absolute or simple references)
attr - The name of the attribute being referred to
abs - true iff the reference is absolute (i.e., .attr)