2 //=============================================================================
6 * Extension of class AST_Attribute that provides additional means for C++
9 * @author Copyright 1994-1995 by Sun Microsystems
10 * @author Inc. and Aniruddha Gokhale
12 //=============================================================================
14 #ifndef BE_ATTRIBUTE_H
15 #define BE_ATTRIBUTE_H
17 #include "ast_attribute.h"
23 class be_attribute
: public virtual AST_Attribute
,
24 public virtual be_field
27 be_attribute (bool ro
,
33 // Non-virtual override of frontend method.
34 be_type
*field_type (void) const;
37 virtual int accept (be_visitor
*visitor
);
40 virtual void destroy (void);
42 /// Sets the original attribute from which this one was created,
43 /// applies only to implied IDL.
44 void original_attribute (be_attribute
*original_attribute
);
46 /// Returns the original attribute from which this one was created,
47 /// applies only to implied IDL
48 be_attribute
*original_attribute ();
52 DEF_NARROW_FROM_DECL (be_attribute
);